From Xojo Documentation


Ptr.String(offset As Integer = 0) As Structure

Supported for all project types and targets.

Converts the value referenced to by the pointer to a specific Structure type.

Sample Code

Given a structure, you can dereference it from a pointer like this:

Structure TestStruct
Value As Int64
End Structure
Dim p As Ptr // assign an appropriate Ptr value
Dim structVar As TestStruct = p.TestStruct

structVar.Value = 42