Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Auto click variable
Message
De
05/01/2013 13:40:47
 
 
À
05/01/2013 13:36:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01561508
Message ID:
01561514
Vues:
49
>>>>I'm trying to get this to work for me.
>>>>
>>>>
>>>>* TIMER BUTTON CODE
>>>>PRIVATE timevar,cbutton
>>>>timevar = "13:15:00"
>>>>cbutton = "Command62"
>>>>DO WHILE TIME() <> timevar
>>>>loop
>>>>ENDDO
>>>>thisform.cbutton.click
>>>>
>>>>
>>>>And of course c.button is giving me trouble. I've tried quotes, brackets and m. variations with no success.
>>>>How can I get c.button to automatically click while I'm sleeping?
>>>
>>>It should be
>>>
>>>
>>>Thisform.TheActualButtonName.Click
>>>
>>>
>>>Where "TheActualButtonName" is the name of the button that is on the form.
>>>
>>>Your code is trying to click a button named "cbutton" on your form but there is, I assume, no such button. So in your example you want:
>>>
>>>
>>>Thisform.Command62.Click
>>>
>>
>>Yes I know, but I want to be able to use the variable because there are several button names that have to pass through that code.
>
>Here are 2 options:
>
>
>cbutton = "thisform.command2.click"
>&cbutton
>
>
>and
>
>
>cbutton = "thisform.command2"
>WITH evaluate(cbutton)
>  .click
>ENDWITH
>
>
Thank you.
I ain't skeert of nuttin eh?
Yikes! What was that?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform