Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BINDEVENT on INIT
Message
 
 
À
16/01/2007 22:04:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01186138
Message ID:
01186139
Vues:
24
>What's the best way to use BINDEVENT associated to the INIT event ?
>
>I've created a class that needs to have some code run after all the objects of a form are initialized. So I added a
>
BINDEVENT(Thisform, "Init", This, "AfterFormInit")
>
>But this does not work as desired if the INIT method of the form is empty.
>If I write any code on it, such as
>
DODEFAULT()
>Everything works fine.
>
>Can someone provide any tip ?
>Thanks in antecipation

Hi Cesar,

The help for BINDEVENT() Function states, that "certain events such as When and Valid require code in the event for it to occur" but it doesn't provide complete list of such events. The ERROR() and DESTROY() events fall in this category. Seems that you found one more - INIT().
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform