Startseite > lang > type > pointer 
 en fr es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh zh_TW eo
Zurück  Weiter  Bearbeiten  Umbenennen  Rückgängig  Suchen  Verwaltung  
Dokumentation  
Achtung! Diese Seite wurde noch nicht übersetzt.  Siehe englische Version 
Pointer
DIM Var AS Pointer

This native datatype represents a pointer, i.e. an address in memory.

This is an absolute synonymous of the Integer datatype on 32 bits systems.

In the 64-bits version of Gambas, a Pointer is a synonymous for the Long datatype.

Example

This example puts the (hex) representation of a Single number into a f. See Single Precision

DIM i AS Integer ' 4 bytes
DIM f AS Single  ' 4 bytes
DIM hH AS Pointer ' Needs to be allocated

i = &h3EAAAAAA& 'IEEE representation of 1/3

hH = Alloc(4)
WRITE #hH, i
READ #hH, f
Free(hH)

Siehe auch

Datentypen, Alloc