07-27-2006 01:01 AM
07-27-2006 02:20 AM
Hi Markus,
How are you coding the index in your statement 'PropertyExists("Runstate.Caller.Locals.Resultlist[Index].Numeric")'.
If index is a number eg PropertyExists("Runstate.Caller.Locals.Resultlist[0].Numeric") there should be no problem.
if you are using a variable then you need to something like:
PropertyExists("Runstate.Caller.Locals.Resultlist[" + Str(Locals.Index) +"].Numeric")
Hope this helps.
Regards
Ray Farmer
02-12-2022 03:18 PM - edited 02-12-2022 03:19 PM
I have a similar issue when I try to check the existence of the serial number property in RunState. Please notice in the attached screenshot that PropertyExists() function returns False though the property actually exists and have the serial number value "1234". How can I check if the property exists in RunState?
02-22-2022 01:42 AM
Just in case anyone has such issue, the missing quotes inside PropertyExists function arguments are the cause of this issue. Since serial number is itself a string, the function operates on the value in variale UUT.SerialNumber which will obviously be False.