how to accept the percentage sign?

Status
Not open for further replies.

ipmeow

Newcomer
Joined
Mar 25, 2003
Messages
1
Location
CA
VB 6.0 - how to accept the percentage sign?

Hello,

I am new to VB 6.0. Anyone can help me with the following question?

In a textbox, I need to accept the input in the percentage format. (e.g. 12.5%)

User may or may not enter the "%" sign in the input box.

Should I do the "if" statement or there is a function which can trim the "%" sign and convert it to a number?

thanks!
 
Last edited:
even if there is a function.. do the coding yourself for the practice.
an if statement would work fine
 
Status
Not open for further replies.
Back
Top