Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MAKE 'ON KEY LABEL' change active Textbox on form
Message
De
08/09/2001 14:29:07
Charles Richard
Nvo Management Systems
Boisbriand, Québec, Canada
 
 
À
08/09/2001 08:20:21
Ing. T.R.M. Pluym
Pluym Elektronics Bv
Hulst, Pays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00554266
Message ID:
00554306
Vues:
8
>Hi all,
>
>I like to implement a function to the ALT-P key to activate the PROPER() function on the current active TextBox on the form.
>
>I already tried:
>
>ON KEY LABEL ALT+P MyProper(ThisForm.Activecontrol.Value)
>
>FUNCTION(tcValue)
>
>Proper(tcValue)
>
>RETURN(.T.)
>
>It dit not work because the 'ThisForm.' does only works on the form itselve.
>
>Wat is an other way to make this work ??
>
>Thanks in advance,
>
>Theo

Try the following code in the KeyPress() of the testbox

****************
LPARAMETERS nKeyCode, nShiftAltCtrl
IF nKeyCode = 25 && ALT-P
This.Value = PROPER(This.Value)
NODEFAULT
ENDIF
****************

HTH
Charles Richard
NVO Management Systems
crichard@nvo.ca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform