305 of 318
ZBasic System Library 295 ZX Microcontroller Family VarPtr Type Function returning UnsignedInteger Invocation VarPtr(var) Parameter Method Type Description var ByRef any variable The variable of which the address is desired. Discussion This function returns the UnsignedInteger representation of the RAM address of the specified variable. Note that for arrays, you may also specify subscript expressions for all of the array dimensions to yield the address of an individual array element. Without the subscript expressions, the resulting value will be the address of the first element of the array. This function is useful for deriving the address to pass to the several functions that require a RAM address, e.g. BitCopy(), RamPeek(), RamPoke(), etc. This function is identical to MemAddressU() and is provided for BasicX compatibility. See Also MemAddress, MemAddressU