Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
Back to article list Search Articles Add Comment Printer friendly Direct link ABC: Pre-selecting start point in a browse 1998-11-17 -- Bill Owen Newsgroups: topspeed.products.c5ee
> >When I enter a browse from a menu selection, I want to pre-select the
> >record which appears as selected.
...
> Try...
> PYR:AutoInc = G:CurrentPayer ! Prime the key
> ! Access:Payer.Fetch(PYR:KeyAutoInc) ! Get the record, clears on failure
> ! BRW1.ResetFromFile ! Refill queue
> BRW1.ResetFromBuffer() ! Reset from current value
Thanks for the assistance. When I couldn't make BRW1.ResetFromBuffer()
work I went looking in the manuals again and stumbled over the solution.
As I told a friend yesterday, it would be a 3 line no-brainer in COBOL
and probably just as simple in CW.
Here it is:
BRW1:StartAtCurrent = True
PYR:AutoInc = G:CurrentPayer
Access:Payer.Fetch(PYR:KeyAutoInc)
place it in the ThisWindow.Init procedure embed point 7600 (after the
files are open AND before the browse initialization).
--
Bill
Today is November 23, 2024, 2:07 am This article has been viewed 35338 times. Google search has resulted in 8 hits on this article since January 25, 2004.
|
|