HOW TO
The sample script in this article determines if a global variable exists, and if so, it will return the value of the variable.
Code:
'-- Substitute "_myGlobal" with your global variable.
'-- See if _myGlobal has been defined
s = Script.Make( "x = _myGlobal" )
If (s.HasError) then
MsgBox.Error( "The global variable doesn't exist", "")
Else
MsgBox.Info("Value = "+ _myGlobal.AsString,"The global variable exists!")
end
Get help from ArcGIS experts
Download the Esri Support App