.Text of TextBox formatted as % is interpreted in code as "nn%"

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • L Mehl

    .Text of TextBox formatted as % is interpreted in code as "nn%"

    Hello --

    A textbox, txtSubsRate, on a form has its DataFormat property set to
    Percentage. The result is that a user entering a decimal value of ".nn"
    sees "nn%" in the text box.

    In an expression in code, txtSubsRate.Tex t is read as "nn%". My workaround
    is to use the Replace function to replace "%" with "" and divide by 100.
    Is that what is expected? If not, can someone tell me how to have the
    decimal value interpreted as a decimal and displayed as a percentage?

    Thanks for any help.

    Larry Mehl


Working...