Important: The information in this document is obsolete and should not be used for new development.
SetString
TheSetStringprocedure 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
TheSetStringprocedure 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,SetStringautomatically resizes the handle and copies in the contents of the specified string.SPECIAL CONSIDERATIONS
SetStringmay move memory; your application should not call this procedure at interrupt time.ASSEMBLY-LANGUAGE INFORMATION
The trap macro for theSetStringprocedure is
Trap macro _SetString