Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with textbox
Message
De
30/09/1999 09:24:55
Luca Meroni
Easy Consult S.R.L.
Milan, Italie
 
 
À
30/09/1999 07:01:36
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00270935
Message ID:
00270999
Vues:
33
>>Is there a way to prevent that when I'm at the end of a textbox, the cursor go back of one position?
>>
>>I have the SET CONFIRM ON activated.
>>
>>Thanks, Luca
>
>
You can do it with adding some code to your textbox class :
>
*init
>this.maxlength = this.maxlength + 1
>
>* Keypress
>LPARAMETERS nKeyCode, nShiftAltCtrl
>if this.selstart = ( this.maxlength - 1 ) ;
>      and ( isalpha(chr(nKeyCode)) or isdigit(chr(nKeyCode)) )
>  nodefault
>endif
Cetin


It seems to work fine, but in numeric field with InputMask and in Date fields it doesn't work.

Luca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform