01-30-2015 08:39 AM
Hi,
I'd like to populate my container with some oher containers unless they exist.
So I've created:
Locals.Exists("TestCont.A",0)?
(
Locals.TestCont.NewSubProperty("A",PropValType_Container,False,"Container",0), Locals.TestCont.A=Locals.B ):(True)
Container B contains two subproperties one string and second number.
However, I'm getting the error: Variable or property types do not match or are not compatible
How to do it correctly?
K.
Solved! Go to Solution.
01-30-2015 09:32 AM
Maybe try this:
PropertyExists("Locals.TestCont.A") ? True : Locals.TestCont.SetPropertyObject("A", 1, Locals.B.Clone("", 0))
Hope this helps,
01-30-2015 12:19 PM
Thank ~jiggawax~ for rapid help!
You answer made me thinking further, so I have some additional scenario.
I posted it here