Skip to content

.SHORTVAR

FUNCTION

This command tells the script compiler to accept only short elastic variable names. A short name can be no more than two characters long, which does not include the $ (dollar sign) used to denote a string variable or the % (percent sign) used to denote an integer variable.

SYNTAX

.SHORTVAR

NOTES

  • This command must begin in the leftmost column of the script.
  • Examples of short elastic variable names are B1$, A$, and X7. Invalid short 3GL variable names include ABLE$, TAX_AMT, and DISC_PERC%.
  • When the .SHORTVAR command is active, long elastic variable names will cause compilation errors.
  • When the .LONGVAR command is active any misspelled Script-IV command or 4GL data name will be compiled as an elastic variable. To check the spelling of these commands and data names you can use the .SHORTVAR command.
  • When the .LONGVAR command is active the Script-IV compiler will accept long and short elastic variable names.
  • LONGVAR mode is the default.

SEE ALSO

.LONGVAR, descriptions of LONGVAR and SHORTVAR directives in the Thoroughbred Basic Language Reference. Information on elastic (3GL) variables can be found in the Thoroughbred Basic Developer Guide.

From the Script-IV Language Reference, version 8.9.1. Open this page in the PDF