Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why can't I programmatically call click?
Message
 
À
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:
01006377
Vues:
17
You may be calling the click from inside an OCX control or beyond the container. Little location issues can really eat the clock! Here's hhat ya do in your code attempting to click your button:
thisform.container.CmdButton.Setfocus()
keyboard '{SPACE}'


Get it ?:)


>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?
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform