04-05-2007 03:33 AM
04-05-2007 04:09 AM - edited 04-05-2007 04:09 AM
Hi,
Message Edited by Ray Farmer on 04-05-2007 10:09 AM
04-05-2007 04:58 AM
04-05-2007 05:19 AM
Hi,
I think you have to do:
Evaluate(Step.ThisIsMyScope + \".Data.MyArray[\" + Step.index + \"].Name\")
so you dont get the token error
Regards
Ray Farmer
04-05-2007 06:12 AM
04-05-2007 06:40 AM
Ok
Evaluate(Step.ThisIsMyScope + ".Data.MyArray[" + Str(Step.index) + "].Name")
The parameter of Evaluate must be a string, and I'm guessing Step.index is a number so convert it to a string.
Regards
Ray Farmer
04-05-2007 06:55 AM
04-05-2007 07:13 AM
Hi,
Should that be Data.MyData or Is it DataMyData? What is the full structure of Data?
I've just tried a similar example which worked for me using TestStand 2.0
Can You post a small example.
Regards
Ray Farmer
04-05-2007 07:40 AM
04-10-2007 01:04 AM
Hi,
I'm not seeing the problem you are having.
if you put FileGlobals.Data.MyArray[2].Name in the expression
Locals.expr = Evaluate("FileGlobals.Data.MyArray[2].Name") do you get the expected value returned in Locals.expr.
Regards
Ray Farmer