Revision [14094]

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

 

CPTR


Converts a pointer expression to a specified data type pointer

Syntax:
Cptr( PointerDataType, expression )

Description:
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.

Examples:
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



sf.net phatcode