Creating An Prompt F2 Option for a Non-key Sequence Counter (AREV Specific)
At 10 JAN 1998 04:00:37PM Jim Dierking wrote:
I would like to create an F2 option at a prompt to
return a non-key sequence number. Can anyone suggest
how the %s% value could be returned from a symbolic field
called at the option prompt. TIA, Jim Dierking
At 10 JAN 1998 05:02PM Andrew P McAuley wrote:
I'm at home at the moment so have no references to hand (heresy) but I suspect you call function/subroutine DEFAULT and just pass it %S%. If noone else chips in I'll check when I get to the office.
World Leaders in all things RevSoft
At 10 JAN 1998 09:03PM Curt Putnam wrote:
Andrew is correct. At the default property prompt, simply select the non-key sequence counter
At 11 JAN 1998 06:04AM Andrew P McAuley wrote:
OK had the chance to check with the bible, RevMedia FKB and it says
When programming our own defaults or attempting to control window flow more completely than is usual, it can be necessary to gain access to the default for a new record. Generally this is a simple process but in the case of things like %SK% can be a little more complex.
To get this information in the same way as the system, all that is needed is to call the system function DEFAULT passing it the kind of default that is required. Thus in the example given above we could
DECLARE FUNCTION DEFAULTNEXT.NO=DEFAULT("%SK%")(Volume 1, Issue 8, Page 10)
Page 10 DEFAULT - note that to use DEFAULT the program declaring default must be a routine including WINDOW_COMMON%. Further, additional parameters may need to be loaded. EG for %SK% to work both @DICT and WC_SRC_FILE% must be loaded correctly.
World Leaders in all things RevSoft