Hello
Basically, I've been wondering if part of the left side of an assignment can be made parametric.
To explain:
Lets say i have a json of properties
{
"widht": "100%",
"color": -1454129,
"txtcolor": -12864927,
"xoffset": 0
.........
},
I get the json from an mqtt server, and assign those properties to an object.
Now, what if i dont know beforehand which and how many the managed properties will be? Maybe just these 4, maybe 100 or n
Is it possible to write code like this?
Of course assuming the json doesnt contain properties unsupported by Myobject.interface.
I know something similar can be done in .net, no clue about b4x thou
Thanks alot for your time