Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange behavior of the textbox with the amount
Message
From
18/01/2006 13:10:00
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01088067
Message ID:
01088095
Views:
18
>>>Hi everybody,
>>>
>>>We have textboxes on different forms, which seem to exibit the same strange behavior. The textboxes are unbound, have $ as format and 9,999,999.99 in InputMask (set in design time). Now, if you press the Enter, the cursor moves to the next control. You go back to that textbox and press Enter again and one of the digit disappers. In other words, each time you go back to the control and press Enter, one of the digits will vanish.
>>>
>>>Do you know why is that?
>>
>>Top of my head:
>>
>>Have you used "R" in the format, to tell it to obey the InputMask?
>>Something to do with the relative char position of the cursor on return to the field?
>
>No, the Format is $, as I said. Can you replicate the problem? May be we need R as well, but it would be a disaster to update all amount textboxes through the whole project, because we don't have a special class for that.

Assuming you are using a subclassed text box, you could try putting R in the format of your base class and see if it has any negative impact on other textboxes.

Regards,
Jim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform