Important: The information in this document is obsolete and should not be used for new development.
SetScriptManagerVariable
TheSetScriptManagerVariable
function sets the specified Script Manager variable to the value of the input parameter.
FUNCTION SetScriptManagerVariable (selector: Integer; param: LongInt): OSErr;
selector
- A value that specifies a particular Script Manager variable.
param
- The new value for the specified Script Manager variable.
DESCRIPTION
The actual values to be assigned may be long integers, standard integers, or signed bytes. If the value is other than a long integer, you must store it in the low-order word or byte of theparam
parameter and set the unused bytes to 0.The
SetScriptManagerVariable
function returns the valuesmBadVerb
if the selector is not valid. Otherwise, it returns 0 (noErr
).To specify the Script Manager variable whose value you wish to change, use one of the selector constants listed on page 6-61.
RESULT CODES
noErr 0 No error smBadVerb -1 Invalid selector passed to the routine