Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change a text box's Input mask dynamically? 1

Status
Not open for further replies.

shahatul

Programmer
May 28, 2002
23
US
I have a text box which shows price/unit. I want to display, if price Per Unit to be 4 decimal positions when necessary.

Math on this:
15.40 X 22.08 = $340.0320
340.03 / 15.40 = 22.0799

If Units are 1.00 and Total $ are $100.00
It should print price/unit as $100.00 (2 decimal positions). I want to change input mask dynamically. Any ideas?
Thanks
 
I put an example in thread184-549779
You can adjust/expand it the way you want

Regards



-- AirCon --
 
Dear AirCon,

Thanks for your great help.
Regards
 
shahatul,

You're welcome :)
Regards

-- AirCon --
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top