Processing to run against each highlighted line of a browse lookup
Richard Kreiss
rkreiss at verizon.net
Thu Apr 30 11:09:17 PDT 2020
The suggestion to use an array for the records is a good one. you could loop through the array by incrementing the array index #. Suggest you do a looup to the record using the record number. This will insure that the correct record is being updated.
The other thing you could do is use drop to execute your lookup and update.
Your third choice would be use drop to loop back through the browse and use Pushkey ["CDWN"] to move the highlight down one line.
I think the array would be the easiest to program and insure that your processing does each element in the array.. Just make sure you dim the array to handle all possible records that will be found. I have an array set to 5000 as my client add records that fill this arry, I was told that all I would need was a maximum of 600 records to be looked up. Actually this has grown over time (15 years). I expanded it to 5000 as I don’t think I will need to expand the array again.
> -----Original Message-----
> From: Filepro-list <filepro-list-bounces+rkreiss=verizon.net at lists.celestial.com>
> On Behalf Of James Flanagan via Filepro-list
> Sent: Thursday, April 30, 2020 12:27 PM
> To: Filepro_List <filepro-list at lists.celestial.com>
> Subject: Processing to run against each highlighted line of a browse lookup
>
> Freebsd 10.3
> Filepro 5.7.00.09D4
>
> I am looking for solution where I can get some processing to run for each
> highlighted line of a browse lookup, ideally without hitting another keystroke.
>
> Of course, using @SK eq “ENTR”, I can accomplish what I want to do, BUT that
> requires me to use the arrow key up or down, and then hit enter for each record
> to run processing on.
>
> What I would like is if the browse lookup would recognize the @SK’s CRUP and
> CDWN keys (it appears that it does not do so despite not giving any syntax
> error), and then run processing on the highlighted record for each highlighted
> bar movement.
>
> Is there a method for moving the highlight in a browse lookup AND running
> some processing in a single keystroke? Thank you very much, in advance...
>
>
>
>
>
> James Flanagan
> Flantec.com <http://flantec.com/>
>
> email: James at Flantec.com <mailto:James at Flantec.com>
> mobile: 760-458-8498
> home: 219-221-6219
> text: 7604588498 at txt.att.net <mailto:7604588498 at txt.att.net>
>
> Skype: Flantec
> ichat: James at Flantec.com <mailto:James at Flantec.com>
>
> home: 1901 Cidermill Road
> Michigan City, IN 46360
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://mailman.celestial.com/pipermail/filepro-
> list/attachments/20200430/c34cc006/attachment.html>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: PastedGraphic-1.tiff
> Type: image/tiff
> Size: 19328 bytes
> Desc: not available
> URL: <http://mailman.celestial.com/pipermail/filepro-
> list/attachments/20200430/c34cc006/attachment.tiff>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
More information about the Filepro-list
mailing list