PString Class

A "Pascal" string, typically used only with Mac OS "classic." The first byte is the length of the string; as a result, it is limited to 255 characters. You can pass a regular REALbasic String to it and it will be converted to a PString automatically.

Also, PString does an implicit type conversion to String when you assign a PString to a String variable.

PString can be used only with a Declare statement and it cannot be used to declare REALbasic variables, properties, and methods.

# See Also

Declare statement; Byte, CFStringRef, CString, OSType, Ptr, Short, UByte, UShort, WindowPtr, WString data types.