tips:revmedia:v1i8a27

Defaults

Published ByDateVersionKnowledge LevelKeywords
Sprezzatura Ltd01 JAN 19901.15+EXPERTDEFAULT, %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)

  • tips/revmedia/v1i8a27.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1