Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6SP5: TextBox Input Mask is not Display Mask in a Gri
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00773409
Message ID:
00774639
Vues:
11
Hi

PART I
Sorry to have troubled you all. But there was a major misunderstanding on my part. There are two InputMask properties for a column
1. Properties | Data | InputMask
2. Properties | Layout | DynamicInputMask

I used DynamicInputMask which was wrong, using the InputMask on the Data tab did the trick.

Thanks for your patient responses.


PART II
Now I did the same thing programatically, ie. setting of the columns InputMask property. Though the gotfocus() of the textbox shows that the column has the InputMask property set correctly, it still shows the currency placements of 4 decimals.


PART III
More interestingly, the gotfocus() of the textbox when wait window this.parent.inputmask shows the mask I have programatically set but in actual it uses the input mask that is specified at design time, which, to differentiate, I had set to 9,9,9,9,9.9

>Bhavbuti, see
>
>Re: Currency in textbox in grid Thread #733140 Message #733153
>
>and
>
>Re: Currency in textbox in grid Thread #733141 Message #733144
>
>and
>
>Re: Display as in 999,999 format Thread #650828 Message #650889
>
>for a variety of solutions / options.
>
>
>>Hi all
>>
>>I have a grid with my custom controls in it. The default textboxes are removed from the columns. Thus technically I have only one control in a column of a grid and I presume it will be used for display as well as for data-entry.
>>
>>For a currency field, recently I have put in Input Mask for a text box in the format 99,99,999.99 When the column-textbox gets the focus and data-entry is begin done, the input mask works as it should.
>>
>>As soon as this control looses focus the default 99999999.9999 type of display mask takes place of the number usng the input mask.
>>
>>Q1. How can I avoid this behaviour?
>>Q2. Can I specify also a display mask, if so, then where?
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform