array of array(s)
Verfasst: 27. November 2017, 14:38
Auch eine Sache, die ich nicht verstehe:
Die Initialisierung von tArr1 funktioniert nicht. Eine Zuweisung wie untern von eine Variant zu einem array of 2 int funktioniert und auch die Zuweisung von einer Variant zu einer anderen.
Warum kann man tArr1 nicht so initialisieren?
funktionieren tut:
Code: Alles auswählen
PROCEDURE TestProc3()
tArr1 is array of arrays of 2 int
tPartArr1 is array of 2 int
tArr2 is Variant
tPartArr2 is Variant
// tArr1 = [ [1,2],
// [3,4]]
tArr2 = [[ 1,2],
[3,4]]
tPartArr1 = tArr2[1]
tPartArr2 = tArr2[1]
Warum kann man tArr1 nicht so initialisieren?
funktionieren tut:
Code: Alles auswählen
ArrayInsert(tArr1, 1, [1,2])
ArrayInsert(tArr1, 2, [3,4])