Text.FromCString
From Xojo Documentation
Shared Method
Text.FromCString(str As CString, encoding as Xojo.Core.TextEncoding) As Text
Supported for all project types and targets.
Supported for all project types and targets.
Creates a new Text object from a CString, interpreting it using the given encoding.
Exceptions
- NilObjectException if str is Nil or encoding is Nil.
- UnsupportedFormatException if str is not valid for the given encoding.