Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When event fires at different times !!!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00757449
Message ID:
00757464
Vues:
20
Gerard,
I've just run a quick test in VF7 and what appear to happen is:
Tab onto Button:-
When
GotFocus

Click on button:-
When
GotFocus
Click
When

I don't know why but the when does indeed appear to be firing a second time after the Click

HTH
Caroline



>Does anybody know if I am correct in the following:
>
>With a Command Button:
>The when event fires 'After' the click event , if I click on the button
>The When event fires 'Before' the click event if I tab into the button.
>
>According to the text at the bottom of the button in VFP, the When event is supposed to fire "When..occurs before a Control Receives the focus'
>
>If the above is the case, it makes using the When event very difficult. I canot be sure if the code is going to fire 'on entry' to the button (which is where I would expect it to fire or on 'Exit' from the button (which can be too late)
>
>(I also notice that this is NOT the behaviour for Text boxes.
>
>
>If anybody else has come across this and found a way to ALWAYS 'Force' the when event to fire Before the Click event, I'd apprecaite any tips.
>
>regards,
>
>Gerard
Caroline
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform