StrPtr in xojo?

What is the equivalent of StrPtr from VB6 in xojo?

Can anyone share the equivalent code?

@Aditya Nugraha —You can use a MemoryBlock (it auto-converts from a String):

dim StrPtr as MemoryBlock = myString

then you can use the MemoryBlock as a Ptr to the String or you can access String data with the different methods of the MemoryBlock.