Defaults
Published By | Date | Version | Knowledge Level | Keywords |
---|---|---|---|---|
Sprezzatura Ltd | 01 JAN 1990 | 1.15+ | EXPERT | DEFAULT, %SK% |
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 DEFAULT NEXT.NO = DEFAULT("%SK%")
(Volume 1, Issue 8, Page 10)