Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to add new property during program execution?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00007808
Message ID:
00007826
Views:
40
>>>>Your right an array would be a good general storge spot. T answer his question, I believe it is called sub-classing! (s) I know of no way to add anything unless you subclass that object.
>>>>
>>>>HTH,
>>>>Tom
>>>
>>>Can you subclass an object at runtime?
>>
>>If I understand you right then yes. I don't see why not. Thats how a lot of people create their apps -- by running code that builds objects on the fly.
>>
>>HTH,
>>Tom
>
>Sorry, my bad English again. I understood that you are saing that you can change the class for an object at runtime. Never mind.

No you can't add PEMS. That is why they made sub-classing so you could add stuff to an object without corrupting the object. Just create a new object from an existing object to your specifications.

Yeah I wish we could just simpley add a new property on the fly -- it would be easier but there is a lot more to it then that.

HTH,
Tom
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Previous
Reply
Map
View

Click here to load this message in the networking platform