Pointer
 
A variable declaration type modifier

Syntax

Dim symbolname As DataType {Pointer | Ptr}

Description

Declares a pointer variable. The same as Ptr.

Example

Dim p As ZString Pointer
Dim text As String
text = "Hello World!"
p = StrPtr(text) + 6
Print text
Print *p

'' Output:
'' Hello World!
'' World!


Dialect Differences

  • Not available in the -lang qb dialect unless referenced with the alias __Pointer.

Differences from QB

  • New to FreeBASIC

See also