System-Defined Global Variables in Method Calls

Previous Next

After you have set the language for a Binder project, or executed one of the following methods:

FileExists()

CommandWindows()

you can use a system-defined global variable to get the result:

System-Def. Global

Result of

Return Value

global.language

setting the language property in USoft Binder.

This is a project property.

<language name>

<nothing>

global.fileExists

FileExists(<filepath>)

True/False

global.system_result

CommandWindows

(<command>)

Success

Out of memory

File not found

Path not found

<nothing>

 

· If a language has been set, the global.language variable contains this setting, otherwise it contains an empty string.

 

· As with other variables in path syntax, refer to the value of the global using a colon:

:"global.fileExists"

· Global.system_result returns an empty string if the CommandWindows() command has failed for another reason than Out of memory, File not found, or Path not found.