Important: The information in this document is obsolete and should not be used for new development.
SetString
TheSetString
procedure changes the contents of a string referenced by a string handle, replacing the previous contents by copying the specified string.
PROCEDURE SetString (h: StringHandle; theString: Str255);
h
- A handle to the string in memory whose contents you are replacing.
theString
- A Pascal string.
DESCRIPTION
TheSetString
procedure sets the string whose handle is passed in the h parameter to the string specified by the parametertheString
. If the new string is larger than the string originally referenced byh
,SetString
automatically resizes the handle and copies in the contents of the specified string.SPECIAL CONSIDERATIONS
SetString
may move memory; your application should not call this procedure at interrupt time.ASSEMBLY-LANGUAGE INFORMATION
The trap macro for theSetString
procedure is
Trap macro _SetString