G
Guest
All samples related to this see to come short of being 'truly' dynamic. For
instance, after creating all the code to load/save a properties value, you
turn around and save it to one you KNOW exists:
foo.Height = (my loaded value)...
I am trying to load and set the property on the fly - without necessarily
knowing what it is. Imagine a 100 name/value pairs in a file (config, res,
txt, whatever). I want to load and set those on the fly, without knowing
about the properties that exist (dynamic) or don't (exception handling). For
instance:
MyForm.Controls["myctrlname"]["mypropname"] = myvalue;
....where all three "unknowns" are loaded on the fly. I know C++ couldn't do
this but scripting languages can. Given that this is an intermediate type
language, is this possible?
instance, after creating all the code to load/save a properties value, you
turn around and save it to one you KNOW exists:
foo.Height = (my loaded value)...
I am trying to load and set the property on the fly - without necessarily
knowing what it is. Imagine a 100 name/value pairs in a file (config, res,
txt, whatever). I want to load and set those on the fly, without knowing
about the properties that exist (dynamic) or don't (exception handling). For
instance:
MyForm.Controls["myctrlname"]["mypropname"] = myvalue;
....where all three "unknowns" are loaded on the fly. I know C++ couldn't do
this but scripting languages can. Given that this is an intermediate type
language, is this possible?