Inc
Inc(var int1[, int2])
Inkrement-Funktion
Details
- int1: Ganzzahlige Variable oder Feld
- int2: Zu addierender Wert (optional)
- Siehe: Verwandte Befehle ,
Dec ()
Mit dieser Anweisung kann der Wert eines Feldes oder einer Variablen um 1 (int2 nicht vorhanden) oder um (int2) erhöht werden.
Beispiele:
tInt1 # 8; // ganzzahlige Variable
tInt2 # -1; // ganzzahlige Variable
iFeld # 10; // ganzzahliges Feld
Inc(tInt1) // tInt1 : 9
Inc(tInt2) // tInt2 : 0
Inc(iFeld, 2) // iFeld : 12