Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine whether in Design or Run mode?
Message
 
To
23/07/2007 14:24:49
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01242864
Message ID:
01242938
Views:
16
>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?

Property values aren't evaluated when you open Class Designer. The are evaluated only when you instantiate the class.
When you open Class for editing you will see that the property will have a value [=DATETIME()] not:
'07/23/2007 xx:xx:xx'
As far as I understand you want a property that will show you when you last do some changes in the base class, doesn't it?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform