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


As expected :) In numeric fields you might try to increase inputmask by one. In date fields ??? On my part I never "set confirm on" and have this problem. Instead of "set confirm on" what about buffering ?
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform