10-18-2016 01:49 AM
I have a very simple question.
I want to create a local variable programmatically using the NewSubProperty method:
Locals.NewSubProperty("FileSize", PropValType_Number, False, 5)
If I do it, a number is created. The type I need must be signed 64 bit integer. How to do it?
Solved! Go to Solution.
10-18-2016 03:02 AM
Hi Madottati,
You can assign the local variable type using the following expression:
Locals.FileSize.Type.Representation = PropertyRepresentation_Int64
I hope this helps,
Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)
Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor
10-18-2016 08:17 AM - edited 10-18-2016 08:19 AM
You can also do:
Locals.SetValInteger64("MyVar", PropOption_InsertIfMissing, 123i64)
Hope this helps,
-Doug