Important: The information in this document is obsolete and should not be used for new development.
SetScriptManagerVariable
TheSetScriptManagerVariablefunction 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 theparamparameter and set the unused bytes to 0.The
SetScriptManagerVariablefunction returns the valuesmBadVerbif 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