Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
KEYBOARD Doesn't work..
Message
De
22/04/2002 09:12:26
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
22/04/2002 04:09:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00647454
Message ID:
00647512
Vues:
20
Instead of KEYBOARD can't you do oControl.Value = "asddasd" ?
>Hi!
>
>I'm trying to write a test function that looks like:
>
>FOR i=1 TO .ControlCount
> oCtrl=.Controls(i)
> IF lower(oCtrl.baseclass)="combobox" OR lower(oCtrl.baseclass)="textbox"
> oCtrl.SetFocus
> KEYBOARD 'asddasd'
> ENDIF
>ENDFOR
>
>However, the KEYBOARD function never puts anytthing in the field.
>The only way I can get it to work is setting the value/displayvalue but I prefer to simulate keystrokes instead. Anyone know what I can do to get this to work.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform