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.

Creates a new Text object from a CString, interpreting it using the given encoding.

Exceptions