Getting another record using page up or page down key (AREV Specific)
At 17 DEC 2000 06:51:36PM Chris Meyer wrote:
I have a window that has a date as the key to the record. I wish to save any changes and display the next date using the Page Up or display the previous date using the page down key from anywhere within the window. I have successfully implemented this fuction using the F1 (prev date) and F2 (next date) while having the cursor on the key field. This is a little untidy but I do not know how to capture the Page Up key from within a window field.
Any help would be much appreciated.
At 18 DEC 2000 07:09AM WinWin/Revelation technical Support wrote:
Chris-
Has you tried putting code on the PAGE event of the window? You could probably do a Send_Event of Write or somesuch…
Hope it helps-
Mike Ruane
At 18 DEC 2000 09:15AM Donald Bakke wrote:
Mike,
Unless he selected the wrong option, this is an AREV question.
dbakke@srpcs.com
At 18 DEC 2000 09:31AM WinWin/Revelation technical Support wrote:
Now having drunk my morning coffee….
Chris-
You could shell around input.char and look for the scancodes for page up and page down and swap on the fly, but that would be application wide.
Which version of Arev are you using?
Mike Ruane
At 18 DEC 2000 01:29PM Cameron Christie wrote:
Chris,
The exit key from SCRIBE (Window Common variable WC_Wc%) will tell you when the PgUp or PgDn key has been pressed (normally 00:81 and 00:73 respectively.) You can then take action accordingly - perhaps the simplest way is to leave your softkeys unchanged and emulate them being pressed by a catalyst call.
A good place to check the exit value is in a perpetual process on the window (that's if you don't mind any specific post-prompt logic being run first, and remembering that it's too late for WC_Valid% to have any effect at this point!)
Watch also for multi-valued columns/groups. You might not want to change the behaviour of the paging keys in such entries…
Good luck,
Cameron
At 19 DEC 2000 06:15PM Chris Meyer wrote:
Thanks. I will have a go at putting code into the scribe processing routine. For your information the version of AREV IS 3.12
Regards
Chris