Click here to Skip to main content
15,112,662 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi, does anybody know how to get a value from a percentage number that you have entered? for example i have a textbox on vb6, and i want to get its percent value and display it on a msgbox, for example if i enter a percentage number on the textbox of "50%" then the output should be 0.50. im having problems on how to get it.. sorry for my bad english guys.. tnx in advance.

1 solution

It's quite simple.

Catch TextBox.Text value to string variable, then remove "%" and divide by 100 ;)

Please see:
[no name] 21-Dec-13 13:21pm
Maciej Los 21-Dec-13 15:24pm
Thank you ;)
lalar18 22-Dec-13 20:48pm
is it posible? can give an actual code for that?? thanks..
Maciej Los 23-Dec-13 1:54am
Follow the links and try ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900