Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ALT Key
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01272544
Message ID:
01272553
Vues:
18
>>Hi All,
>>
>>I been trying to setup a on key label as "ALT+D" in a form. It does not allow me to set it in a method, or a button that will activate when the user press ALT+D that will sent the cursor to a specific field on set focus. There are no other buttons that will interfere when I'm in a edit mode on the form.
>>
>>
>>"On Key Label ALT+D ThisForm.text16.SetFocus()"
>>
>>I keep getting and error "THISFORM can only be use within a method" Im confused since it is with a method allow with other uses of THISFORM for other things. Is there another event that would be a better place to set this in.
>>
>>Any help would be appreciated.
>>
>>Thanks,
>>
>>Craig
>
>You need a reference to Thisform.
>
>An ugly way to do it is to set a varialble that is in scope (public or part of a variable object) = thisform....
>
>like ( this is in the init of the form..)
>
>PUBLIC myform
>
>myform = thisform
>
>ON KEY LABEL ALT+D myform.text2.SetFocus()

Or use a variable that is linked to the form (do form blah name blah linked)
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform