Converts a pointer expression to a specified data type pointer
Syntax
Description
Converts
expression to a pointer to a
DataType.
expression may be a another pointer type or an
Integer.
Example
Dim intval As Integer
Dim intptr As Integer Ptr
intval = &h0080
intptr = @intval
'' will print -128 and 128, as the first expression will be "seen" as an signed byte
Print *CPtr( Byte Ptr, intptr ), *intptr
Dialect Differences
- Not available in the -lang qb dialect unless referenced with the alias __Cptr.
Differences from QB
See also