User Tools

Site Tools


de:dim

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

de:dim [2016/01/01 22:37]
de:dim [2020/02/28 10:46] (current)
Line 1: Line 1:
 +===== Dim =====
 +==== Format ====
 +**dim** //numericvariable//( //AnzahlElemente// )\\
 +**dim** //stringvariable$//( //AnzahlElemente// )\\
 +**dim** //numericvariable//( //rows// , //columns// )\\
 +**dim** //stringvariable$//( //rows// , //columns// )==== Beschreibung ====
 +Liefert ein neu erzeugtes Feld der Länge //AnzahlElemente// zurück. Der Typ des erzeugten Feldes (Zeichenkettenfeld oder numerisches Feld) wird durch den Typ von //Variable// bestimmt.
 +==== Note ====
 +Auf Elemente des Feldes wird via //Variable//[//Index//] zugegriffen. //Index// läuft von 0 bis (AnzahlElemente - 1)
 +==== Beispiel ====
 +<code>
 +dim f(100)
 +f[0] = 1
 +dim c$(5)
 +c$[4] = "Hi!"
 +</code>