Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
805
Allowing input of fractions in an UltraNumericEditor?
posted

I have an input screen that allows users to type in stock prices. These still come in fractions in some cases, and the user would like to be able to type them in that way, with a space between the whole and fractional parts. I think I can do the parsing easily enough, but:

1) is there a mask that will allow this to be typed in? and still allow normal decimals?

2) what's a good place to trap the parsing before the normal code in UltraNumericEditor fires?

Maury

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    Maury Markowitz said:
    1) is there a mask that will allow this to be typed in? and still allow normal decimals?

    No, I don't believe there is any mask that will allow you to so this.

    Maury Markowitz said:
    2) what's a good place to trap the parsing before the normal code in UltraNumericEditor fires?

    Normally, you would use a DataFilter for this. But I don't think the DataFilter will fire the conversions you would need here. The masked editors do not allow you to format the data when going from the editor to the display because the display has to fit the mask.

     

Children