info(“filevariables”)

The info(“filevariables”) function builds a carriage return separated text array containing a list of the currently allocated fileglobal variables in the current database.


Description

This function builds a carriage return separated text array containing a list of the currently allocated fileglobal variables in the current database. (Note: You can also retrieve this list using the dbinfo( function.)

The example below uses info(“filevariables”) to check to see if a fileglobal variable SalesTax exists. If it does not, then it displays a message that the database doesn’t support sales tax. If the variable does exist, the procedure sets the SalesTax variable to 7.75.

if 0 = arraysearch( info("filevariables"),"SalesTax",1,cr() )
    beep
    message "This database does not support Sales Tax"
    stop
endif
SalesTax=7.75

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0