Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timer Control
Message
From
12/01/2002 08:16:23
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00601591
Message ID:
00603902
Views:
21

>>you can create Private variable with a specific name, store ThisForm.Timer1 to it, and use this variable in your UDF.

>You really shouldn't give this as a possible solution to the problem, in an event driven OO environment private variables the worst possible way to provide an interface between two things.


Yes, I agree with this.
But sometimes the rules should be broken.
Do not say me that you ALWAYS design your databases in 5NF (or even 3NF)

When you need to run a generic code, that has references to This and ThisForm (and ThisForm is not the active form, and This is not the ActiveControl of the Form) The only way I know is to use private variable to store reference to This (or ThisForm)

If you know better way - I'll be glad, if you share your knowledge with me!

Kind Regards
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform