Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Text /
Chapter 6 - Script Manager / Script Manager Reference
Routines / Checking and Setting Script Manager Variables


GetScriptManagerVariable

The GetScriptManagerVariable 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
Although GetScriptManagerVariable 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 by GetScriptManagerVariable; the remaining bytes are set to 0.

The GetScriptManagerVariable function returns 0 if the selector is invalid.

Note
For some valid selectors, 0 may also be a valid return value. For example, when you call GetScriptManagerVariable with a selector value of smRegionCode on a version of Macintosh system software that has been localized for the United States, it returns 0.
To specify the Script Manager variable whose value you need, use one of the selector constants listed on page 6-61.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996