using @br to move cursor in brw lu
Barry Wiseman
bwiseman at optonline.net
Tue Jan 22 07:37:56 PST 2008
Scott Nelson wrote:
> Barry Wiseman wrote:
>> Scott Nelson wrote:
>>> I see the @br system field that is supposed to keep the line number
>>> of the position of the cursor on the brw.
>>> Can this be used to move the cursor to the next line after an @bk is
>>> acted upon, and the brw lu refreshed?
>>
>> What's wrong with a PUSHKEY "[CDWN]" before re-executing the brw lu?
>>
> I tried that, and it works, but the counting loop was clutsy. I was
> trying to see if I could detect the line and how many down the browse
> list to repeat the pushkey with. Also, the list may be long and scroll
> a ways. If the user has 'selected' some of the items, I want the list
> to pass those selected and continue down.
With PKEEP, the brw should redraw at the same position in the data, so
"how many down" would always equal 1.
You could keep a list of previously-selected items (in an array, a temp
file, etc.) and DROP them when drawing the browse. If you really need
to show them but simply not have the brw lu cursor stop there, you want
John Esak's extremely clever "pig in a poke" technique, which allows
enormously enhanced program control over browse lookups and is useful
for all manner of cool things. John was selling this on the list for a
few bucks several years ago, you might want to contact him.
More information about the Filepro-list
mailing list