>>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!