|
|
| WordPTR | ||
| WordPointer = WordPTR(Pointer) | ||
| Parameters: Pointer = The Pointer Data Type you wish to recast |
||
| Returns: WordPointer = Returns the recast input value as a new pointer |
||
WordPTR will explicitly recast the supplied pointer to a Word (16bit) Pointer. FACTS: * Typed pointers like Byte/Word/Integer and Float can only read/write values of matching data type. * Additions / Subtraction to typed pointers with be automatically scale to the pointers data width. Mini Tutorial: This Example declares an generic pointer, then dynamically recasts it to read different data types from memory.
This example would output.
|
| Related Info: | BytePTR | Dim | Float | FloatPTR | Int | IntPTR | Types : |
|
|
|||||||||||||||||||||||||||||||||||||||
|
(c) Copyright 2002 - 2026 - Kevin Picone - PlayBASIC.com |