Revision history for KeyPgPtr


Revision [22750]

Last edited on 2019-07-04 00:04:30 by fxm [merged the page POINTER (KeyPgPointer) within page PTR (KeyPgPtr)]
Additions:
{{fbdoc item="title" value="(POINTER | PTR)"}}----
[[KeyPgDim|dim]] //symbolname// [[KeyPgAs|as]] [[DataType|DataType]] {**Pointer** | **Ptr**}
Declares a pointer variable.
{{fbdoc item="filename" value="examples/manual/datatype/pointer.bas"}}%%(freebasic)
dim p as zstring pointer
dim text as string
text = "Hello World!"
p = strptr(text) + 6
print text
print *p
'' Output:
'' Hello World!
'' World!
- Not available in the //[[CompilerOptlang|-lang qb]]// dialect unless referenced with the alias ##**""__Pointer""**## or ##**""__Ptr""**##.
Deletions:
{{fbdoc item="title" value="PTR"}}----
[[KeyPgDim|dim]] //symbolname// [[KeyPgAs|as]] [[DataType|DataType]] {**Ptr** | [[KeyPgPointer|pointer]]}
Declares a pointer variable. The same as ##[[KeyPgPointer|Pointer]]##.
- Not available in the //[[CompilerOptlang|-lang qb]]// dialect unless referenced with the alias ##**""__Ptr""**##.
- ##[[KeyPgPointer|Pointer]]##


Revision [21099]

Edited on 2016-03-13 09:32:19 by fxm [Formatting]
Additions:


Revision [20472]

Edited on 2016-02-10 16:07:20 by DkLwikki [Update link format]
Additions:
[[KeyPgDim|dim]] //symbolname// [[KeyPgAs|as]] [[DataType|DataType]] {**Ptr** | [[KeyPgPointer|pointer]]}
Declares a pointer variable. The same as ##[[KeyPgPointer|Pointer]]##.
##[[KeyPgOpAt|Operator @ (Address of)]]## operator or ##[[KeyPgOpVarptr|Varptr]]## are used to take the address of a variable. The ##[[KeyPgOpValueOf|Operator * (Value of)]]## operator is used to dereference the pointer, that is, access the actual value stored in the memory location the pointer is pointing at.
- Not available in the //[[CompilerOptlang|-lang qb]]// dialect unless referenced with the alias ##**""__Ptr""**##.
- ##[[KeyPgPointer|Pointer]]##
- ##[[KeyPgAllocate|Allocate]]##
Deletions:
[[KeyPgDim dim]] //symbolname// [[KeyPgAs as]] [[DataType DataType]] {**Ptr** | [[KeyPgPointer pointer]]}
Declares a pointer variable. The same as ##[[KeyPgPointer Pointer]]##.
##[[KeyPgOpAt Operator @ (Address of)]]## operator or ##[[KeyPgOpVarptr Varptr]]## are used to take the address of a variable. The ##[[KeyPgOpValueOf Operator * (Value of)]]## operator is used to dereference the pointer, that is, access the actual value stored in the memory location the pointer is pointing at.
- Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Ptr""**##.
- ##[[KeyPgPointer Pointer]]##
- ##[[KeyPgAllocate Allocate]]##


Revision [14431]

Edited on 2009-08-29 21:56:40 by CountingPine [Remove CamelCase links in "New to FreeBASIC"]
Additions:
- New to ""FreeBASIC""
Deletions:
- New to FreeBASIC


Revision [13150]

The oldest known version of this page was created on 2008-04-24 15:43:00 by JeffMarshall [Remove CamelCase links in "New to FreeBASIC"]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode