How can I detect if one of the B Arrays has become an empty array {}?
Code: Select all
B1 := {K1: "V1", K2: "V2"}
B2 := {K3: "V3", K4: "V4"}
B3 := {K5: "V5", K6: "V6"}
A := {X: B1, T: B2, C: B3}
A["T"].Delete("K4")
A["T"].Delete("K3")
For Key, oB in A {
MsgBox % Key ;all the values are identical for the different Keys/oBs.
. "`n>" oB.GetCapacity()
. "<`n>" A[Key].GetCapacity()
. "<`n>" A.GetCapacity()
. "<`n>" isObject(oB)
. "<`n>" oB.MaxIndex()
. "<`n>" A[Key].MaxIndex()
. "<`n>" oB.Length()
. "<`n>" A[Key].Length()
. "<`n`"
}