Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TextBox reverses entry
Message
From
27/07/2006 16:53:58
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01140782
Message ID:
01140884
Views:
13
Found the keypress method on the form. It seems that the old Visual FoxPro 6 code allowed a valid on the textbox and maintained the correct value. Visual FoxPro 9 seems to finalize after each keystroke.

Moving the loText.Valid() to within the specific case statements seems to be working.

>Any special code in KeyPress method in grid, textbox, form?
>
>>I have a form that looks like a grid. Don't ask me why, the original developer did it that way.
>>
>>It has five columns and 14 rows of textboxs. They are all based on the same class.
>>
>>TextBox --> ctxtSmall --> ctxtEntry <-- Used on the form.
>>
>>
>>Now the interesting part.
>>
>>When entering in numbers in the first 13 rows the data goes in the right order: e.g. 123,456,789
>>
>>When entering in the numbers in the last row the data goes like this as you enter each keystroke:
>>
>>Enter cell - entire cell is selected
>>Enter "1" - shows 1 left side of textbox
>>Enter "2" - shows 2 left side, 1 right side
>>Enter "3" - shows 3 left side, 21 right side
>>Enter "4" - shows 4 left side, 321 right side
>>Enter "5" - shows 5 left side, 4321 right side
>>Enter "6" - shows 6 left side, 54321 right side
>>Enter "7" - shows 7 left side, 654321 right side
>>Enter "8" - shows 8 left side, 7654321 right side
>>Enter "9" - shows 9 left side, 87654321 right side
>>Leave Cell
>>
>>Cell's value is now 987,654,321 instead of what was entered as 123,456,789
>>
>>
>>Does anyone have any ideas what could be going on? (VFP9 SP1, WIN XP SP2)
Gordon de Rouyan
DC&G Consulting
Edmonton, Alberta
Email: derouyag@shaw.ca
Previous
Reply
Map
View

Click here to load this message in the networking platform