Page History
...
Calling GetPointer for a dimensioned array or an unassigned variable will generate an error. Use the LockVariable statement to lock the string, prior to retrieving the pointer.
See also
GetValue(), LockVariable, UnlockVariable
Example
| Code Block |
|---|
/* This code formalizes the memory variable as type Char, then returns a pointer to that memory data, for use by any code that uses pointers. */ LockVariable StringData As Char lpRefData = GetPointer(StringData) /* value will hold a 14-character string of characters */ value = GetValue(lpRefData, Char, 14) UnlockVariable StringData |