Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Zero added to value in textbox
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00916378
Message ID:
00916541
Views:
7
Would you believe I FIXED IT!, thanks to your code and sticking with me. I put your code in the keypress event instead of the gotfocus event. works like a charm. Thanks

>
>datatype is n(6,0). I discovered that the inputmask(999,999) is causing it.
>Why would that affect it? remember enter only 1 to 3 numbers, 4 numbers is fine.
>

>
>I see it now.
>This is a bug.
>
>with
>
>inputMask = '999999'  && no problems
>inputMask = '999|999' && problem appear
>
>
>try with :
>
>* set SelectOnEntry = .F.
>* on textBox gotFocus
>THIS.Sellength = len(m.this.text)
>
>but this not remove the problem with the Mouse setfocus.
>
>Fabio
Extreme Programming = Plan -> Design -> Code -> Test
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform