Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BindEvents? Big trouble
Message
De
07/10/2003 21:25:03
John Baird
Coatesville, Pennsylvanie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00835365
Message ID:
00836032
Vues:
12
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform