FN
FUNCTION
FN is a data declaration command, which declares a format from Dictionary-IV to be used in the script.
SYNTAX
FN format-name [, format-name ...]- format-name
- the name of a format defined in Dictionary-IV.
NOTES
- FN must be defined prior to any procedures.
- Declaring a format from Dictionary-IV makes the data names accessible to the script.
- The SN, LN, and VN assignment statements for screen, link and view automatically declare the associated formats. Therefore, it is not necessary to declare formats that are linked to declared screens, links, or views.
- Multiple formats can be declared with one FN statement as long as the format names are separated by spaces or commas.
- Data names should, in some cases, be qualified by the format name. The name of the format must precede the data name delimited by a period, for example, 4SFRMAT.CUS-NUMBER. This is necessary if your script uses data names, which match in two, or more declared formats.
EXAMPLES
FN 4SCUSFL, 4SINVFLSEE ALSO
DN, LN, SN, VN, section on Creating Scripts in the Script-IV Developer Guide.
From the Script-IV Language Reference, version 8.9.1. Open this page in the PDF