setfileglobal
DATABASE
,
VARIABLE
,
VALUE

The setfileglobal statement sets the value of a fileglobal variable (optionally in another database).


Parameters

This statement has three parameters:

database – the name of the database that contains the fileglobal variable. If this parameter is "", the currently active database is used.

variable – the name of the fileglobal variable. Since this is the name of the variable, and not the variable itself, you usually need to quote the name (unless you are somehow calculating it with a formula).

value – the value to be placed into the fileglobal variable.


Description

This statement changes the value of a fileglobal variable. If the variable doesn’t already exist, it will be created.

setfileglobal "SaleTaxRate",0.075

This example sets the HomeZipCode fileglobal variable in the Contacts database to 91209.

setfileglobal "Contacts","HomeZipCode","91209"

Note: This statement is extremely fast, and sets the value without temporarily switching to the specified database.


See Also


History

VersionStatusNotes
10.0NewNew in this version, but almost identical to the setfilevariable statement.