where does VarPtr point to?

BlitzMax Forums/BlitzMax Programming/where does VarPtr point to?

Hello!

Lets assume that I have two variables

StringVar:String
ArrayVar:Byte[]

In that case, will

VarPtr StringVar
VarPtr ArrayVar

point to the first character in StringVar or the first element in ArrayVar, resp.? Both types are actually Objects, which means that VarPtr could yield the address of s.th. else...

(FYI: I'm asking because I'll have to pass pointers to external C functions and would like to know if I'll have to do some addtional preparations or may pass the VarPtr's as such - don't worry about "length" issues: the "length" is always passed separately)