Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to reference default class property values
Message
From
24/01/2000 14:57:53
 
 
To
24/01/2000 12:28:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00321691
Message ID:
00321788
Views:
20
>This is a cheezy way, but it might work: When you first instance the object (VFP 6?), create another object from it, as in oDefault = oObject. When you need to reset a property, use oObject.Property = oDefault.Property.

Sorry, John. What you have is another reference to the same object, so once a property is changed in either one, the original value is lost in both.


>
>>Agreed. But I need to do it programmatically in runtime. There must be a way.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform