Need a help
How to get all value from Array_Var and after System.Array.sort(Array_Var); Array_Var is a system array var
to a simple array. But without loop, like for each index Array_Var.GetValue(id)
too much data > 1M.
Need a help
How to get all value from Array_Var and after System.Array.sort(Array_Var); Array_Var is a system array var
to a simple array. But without loop, like for each index Array_Var.GetValue(id)
too much data > 1M.
Use the ToArray() method like this:
myTextArrayList.ToArray(System.Type.GetType("System.String"));
myInt32ArrayList.ToArray(System.Type.GetType("System.Int32"));
myReal32ArrayList.ToArray(System.Type.GetType("System.Single"));
myReal64ArrayList.ToArray(System.Type.GetType("System.Double"));
See attached demo.
Good luck,
-Bill
I think it would be useful to know what you want to do with the data. One of VEE's strengths is handling data of all shapes and sizes so you may well not need a loop. >1M doesn't sound scary in a modern PC with several GB at its disposal.
HTH,
Mike Watts