Thanks, Borislav,
That's along the lines of what I figured I needed to do. I will also have to test the value to see how many decimals are in the value and change the format to that many decimals upon exit, but I was hoping there was a switch to flip that I may have missed.
>>I have to be missing something simple here, I hope.
>>
>>I have a form field that is using a numeric field type. It may be 60, 60.5, or 60.05, with anything from an integer to two decimal places. If the number is 60.00, it needs to show simply 60, etc. In other words, remove trailing zeroes. Setting decimal places and formats seem to only account for a fixed number of decimal places - I would like that to display based upon whether the extra decimal places are needed. I've checked inputmask and format properties but don't see something that will do this easily.
>>
>>Is there a way to only show what's needed but allow input for decimal places?
>>
>>Thanks
>
>Maybe:
>
>**** TextBox GotFocus Event
>this.InputMask = "9999.99"
>
>**** TextBox LostFocus Event
>
>IF INT(this.Value) == this.Value
> this.InputMask = "9999"
>ENDIF
>
Steve Howie, owner
DaSH Technology
Denver, CO