Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange behavior of the textbox with the amount
Message
De
18/01/2006 13:10:00
Jim Winter
Jim Winter Consulting
Hinesburg, Vermont, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01088067
Message ID:
01088095
Vues:
17
>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform