06-12-2019 09:18 AM
Hi,
I am trying to pass a string variable to an array of string in Teststand and it doesn't seem to load the array dynamically vs if I were to pass the strings in a literal format.
I have attached screen shots. I think it's to do with how Teststand does the conversion for a string variable vs literally typed out string array
Please advise.
Thanks,
Solved! Go to Solution.
06-12-2019 10:50 AM
Set ListOfStrings = {"061", "062", "063", "06F"}
Pass Evaluate(FileGlobals.ListOfStrings) as the parameter.
06-12-2019 10:52 AM
If you don't want the brackets in your fileglobal variable then you can remove them and pass
Evaluate("{" + FileGlobals.ListOfStrings + "}")
Hope this helps,
06-12-2019 11:00 AM
That worked. I was almost on the verge of using the split function to pass the string into the array...
Thank you!!