Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LostFocus not firing =?= ActiveX related
Message
From
09/03/2000 12:43:23
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvania, United States
 
 
To
09/03/2000 10:32:33
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvania, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00343675
Message ID:
00343746
Views:
22
>I'm wondering if it is related to the calendar being an ActiveX control, and how to fix it.

Actually, after several more hours investigating this, the problem is related to this particular control's bad firing order.

One would assume the BeforeUpdate method should fire before the control's values (day/month/year) are updated to the newly clicked date, thus enabling the developer to act on the old value before refreshing the control.

The MSCAL.OCX changes the YMD values before the BeforeUpdate method fires.

My solution is to load the .tag with DTOC(date()) in Init. In the BeforeUpdate method, call any method that needs the old date before assigning the .tag with DTOC(this.year,this.month,this.day) It works.

I don't understand why MS would include such a poor OOP example in the controls that ship with VFP6.
Previous
Reply
Map
View

Click here to load this message in the networking platform