Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BindEvent and _Assign Methods
Message
 
To
18/07/2006 12:12:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01137275
Message ID:
01137283
Views:
17
This message has been marked as the solution to the initial question of the thread.
Hi Cesar,

BindEvent can also be used with properties instead of events or methods, and, from the help file:

"When you bind to a property, you should bind to it directly and not to the Assign method. If you bind directly to the Assign method, be aware that Access and Assign methods are marked as Protected and are not visible except within the class."

So you should try:
BINDEVENT(loControl, "Enabled", This, "MyMethod")
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform