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


SetScriptManagerVariable

The SetScriptManagerVariable 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 the param parameter and set the unused bytes to 0.

The SetScriptManagerVariable function returns the value smBadVerb 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
noErr0No error
smBadVerb -1Invalid selector passed to the routine

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996