Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.visual.basic    |    MS Visual Basic discussions, NOT dot-net    |    10,840 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 9,560 of 10,840    |
|    L Mehl to All    |
|    .Text of TextBox formatted as % is inter    |
|    16 Jun 05 05:53:43    |
      From: mehl_nospam@cyvest.com              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.Text 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              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca