Important: The information in this document is obsolete and should not be used for new development.
GetScriptManagerVariable
TheGetScriptManagerVariable
function retrieves the value of the specified Script Manager variable.
FUNCTION GetScriptManagerVariable (selector: Integer): LongInt;
selector
- A value that specifies a particular Script Manager variable.
DESCRIPTION
AlthoughGetScriptManagerVariable
always returns a long integer, the actual value may be a long integer, standard integer, or signed byte. If the value is not a long integer, it is stored in the low-order word or byte of the long integer returned byGetScriptManagerVariable
; the remaining bytes are set to 0.The
GetScriptManagerVariable
function returns 0 if the selector is invalid.
To specify the Script Manager variable whose value you need, use one of the selector constants listed on page 6-61.
- Note
- For some valid selectors, 0 may also be a valid return value. For example, when you call
GetScriptManagerVariable
with a selector value ofsmRegionCode
on a version of Macintosh system software that has been localized for the United States, it returns 0.