07-19-2012 11:50 PM
Hi All,
I am wanting to check the type of a container sub-property. This will then enable me to call the appropriate SetVal method, i.e. SetValInteger64 or SetValBinary.
Could someone provide assistance on the call I need to make to achieve this?
The following returns whether it is Number, String, etc.. however I would like to know whether it is a Int64, float, etc.
TypeOf(Locals.TestSetup.GetNthSubProperty("", 1, 0).GetTypeFlags("", 0))
I will then handle the type and make a call using something like this:
Locals.TestSetup.GetNthSubProperty("", 1, 0).SetValInteger64("", 0, Int64(23))
Any tips or advice would be greatly appreciated.
Cheers,
Cam.
07-20-2012 10:04 AM
Locals.TestSetup.GetNthSubProperty("", 1, 0).Type.ValueType
-Doug
07-22-2012 06:14 PM
Thanks Doug, all solved.