02-07-2017 04:21 AM
I am able getting container’s field names through GetNthSubPropertyName at runtime
I would also like to get their types (String, Number, Boolean…). Does someone has an idea on how proceeding?
Solved! Go to Solution.
02-07-2017 06:05 AM - edited 02-07-2017 06:05 AM
Not completely sure what you need. It's a bit quick and dirty but does this help?
02-07-2017 06:17 AM
Or from TestStand as an expression:
Locals.GetNthSubProperty("StevesLocal",1,0).Type.DisplayString
Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)
Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor
02-07-2017 06:23 AM
Thank you Steve, that is absoluteley what I needed.
As I have to do it within a TestStand statement, the equivalent to your example is:
Locals.TypeName = RunState.Sequence.Parameters.GetNthSubProperty("StevesLocal",1,0).Type.DisplayString
Perfectly works!
02-07-2017 06:24 AM
Thanks to you too, Charlie!