Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BindEvents? Big trouble
Message
From
07/10/2003 21:25:03
John Baird
Coatesville, Pennsylvania, United States
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00835365
Message ID:
00836032
Views:
13
Thanks for replying, but I found the problem. One of my routines creates an Id that I use to add the control references to the collection object. It was generating the same id for two controls causing an error and firing the catch block thus the controls didn't get bound.

It worked fine stepping through becuase I went slower than the computer, but when I ran it normally, I got the behavior I described. I made sure the id's are unique and the problem has been solved.



>>Is anybody using bindevents like this? Any help appreciated.
>
>I'm not 100% sure of your scenario but it sounds like you need to make all BINDEVENT() calls once all your objects are in place. Why not add a BINDEVENTS() method to your container and form. Have the form call it's BINDEVENTS() at the end of init() and in there, find any controls on the form that have a BINDEVENTS() method and fire them also.
Previous
Reply
Map
View

Click here to load this message in the networking platform