The grabfilevariable( function accesses a fileglobal or permanent variable from other databases.
Parameters
This function has two parameters:
database – is the name of the database that contains the fileglobal or permanent variable. Note: This database must currently be open! If the database parameter is ""
, or is omitted, the current database is assumed.
variable – is the name of the variable you want to access. In general, this variable name must be enclosed in quotes (unless you are using a formula to calculate the name).
Description
This function makes it possible to access a fileglobal or permanent variable from other databases. (Usually these variables can only be accessed from the database in which they were created.)
This example dials the phone using the default area code stored as a permanent variable named DefaultAreaCode in the Prefs database
dial grabfilevariable("Prefs","DefaultAreaCode")+Phone
Note: If you want to grab a fileglobal or permanent variable in the current database, you can set the database parameter to ""
, or simply omit the database parameter.
message grabfilevariable("Channel"+channelNumber)
If channelNumber contains 7, this will display the contents of the Channel7 variable.
Note: Starting with Panorama X, an alternate name for this function is fileglobalvalue(.
See Also
History
Version | Status | Notes |
1.0 | Updated | Carried over from Panorama 6.0, but the database variable may be omitted (in which case it defaults to the current database). Also, this function now has an alternate name: fileglobalvalue(. |