Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with textbox
Message
From
30/09/1999 09:24:55
Luca Meroni
Easy Consult S.R.L.
Milan, Italy
 
 
To
30/09/1999 07:01:36
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00270935
Message ID:
00270999
Views:
35
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform