05-02-2007 06:39 PM
05-03-2007 01:36 AM
Hi,
Use the SetValVariant method.
Your array must exist, as the option 0x01 (insert if missing) is not supported using the SetValVariant method.
As an example, Call PropertyObject.SetValVariant("MyArray", 0, {1.2, 2.3, 3.4}) using "StationGlobals" as the reference will fill the array called StationGlobals.MyArray. If the array is already sized and has contains then that contents will be overwritten and the array will be resized, e.g for my example it will become a size of 3 elements.
Check out the examples for accessing arrays with other languages in the examples folder of TestStand.
Regards
Ray Farmer