03-29-2020 08:33 AM
Hi,
I need to create a local variable of custom data type using a Statement. Which teststand API should I use?
03-31-2020 09:34 PM - edited 03-31-2020 10:00 PM
Hi Savitha242,
If you want to write code in statement to generate customized data, you could follow below pictures ~
====
Locals.NewSubProperty("Container ", PropValType_Container , False," ", PropOption_DoNothingIfExists),
#NoValidation(Locals.Container.SetValNumber("Number", PropOption_InsertIfMissing, 10)),
#NoValidation(Locals.Container.SetValString("String", PropOption_InsertIfMissing, "Hello World!!")),
====
Here is the result :
And if you already have the position where you want to generate data, you don't need to use #NoValidation ~
Thanks,
Ricky