Revision [14094]

This is an old revision of KeyPgCptr made by CountingPine on 2009-01-17 12:59:13.



Converts a pointer expression to a specified data type pointer

Cptr( PointerDataType, expression )

Converts expression to PointerDataType.
PointerDataType must be a KeyPgPointer Pointer type (e.g. a DataType KeyPgPtr Ptr or an KeyPgAny Any KeyPgPtr Ptr), or a KeyPgTypeAlias Type (Alias) to one.
expression may have a different pointer type or be an KeyPgInteger Integer.

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:
Differences from QB:
See also:
Back to Converting Data Types
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki phatcode