02-20-2018 03:48 AM
Hi,
I have a teststand enumerated type (locals.myEnum) and a string array (locals.myArray). I'd like to retreive the "locals.myEnum"-th value of the array, but the following expression doesnt work:
locals.myArray[locals.myEnum]
What is the right way to index an array with an enum in teststand?
thx!
02-20-2018 04:45 AM
Ah OK, so its the Val function:
locals.myArray[Val(locals.myEnum)]