VarPtr
Pointer = VarPtr ( Variable )
Returns a pointer that points at the
Variable contents in memory.
- Variable must be a local variable, or a global variable of the current class.
- The datatype of the variable must be numeric, a pointer, or a string.
Use this function when an extern function argument is a pointer to a numeric
variable.
For example, '
int *', or '
void **'.
Do not use it to deal with '
char **', because the contents of a
Gambas String variable is read-only.