Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine whether in Design or Run mode?
Message
From
23/07/2007 14:24:49
 
 
To
23/07/2007 13:15:03
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01242864
Message ID:
01242929
Views:
17
Thank you Borislav Borissov, Naomi Nosonovsky, Steve Gibson:
Sorry, I should have been more explicit. I should not expect anyone to be a mind reader, but it is interesting to know that some exist!
I am trying to have a pair of properties that:

      1.      Shows the modify DateTime of the VCX file
      2.      Shows the Instantiation DateTime of the object

When I set my custom tInstantiated property to =DATETIME(), the class definition evaluates the expression when I close the class designer and it then always shows the same DateTime every time it is subsequently instantiates. The same is true for setting its custom tVcxDateTime property to =FDATE(This.ClassLibrary,1) . One would think to set these properties in the Init method. But rather than having to rely on the subclass to call DODEFAULT() from its Init, I had defined a dummy property with the expression =BaseClass::Init() so that the init at the most ancestral class would auto-fire.

How do I keep this from happening when close the class designer?
Thank you,
- Frank
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform