Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why can't I programmatically call click?
Message
De
19/04/2005 15:28:19
 
 
À
19/04/2005 15:06:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
01006320
Message ID:
01006332
Vues:
16
This message has been marked as a message which has helped to the initial question of the thread.
Hi Dennis,

A good technique is to NOT place functional code in events bot only call a method from an event. like this.
Button::Click
thisform.doSomethingOfValue()

Form::DoSomethingOfValue
this = that
something = this * 3
...
return IfItIsOk
Doing form programming this way you never need to "CALL" an event but rather need only call the method.

Glenn


>In my form I have a command button in a container.
>
>I need to call click programmatically so I do the following:
>
>thisform.container.CmdButton.Click()
>
>But the weird thing is that the code is not executed. I checked in the debugger and that line is just ignored.
>
>What's wrong here?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform