Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to parse user input as numeric

Status
Not open for further replies.

steve4king

IS-IT--Management
Feb 6, 2007
154
US
This seems really basic, and I can do this in C#..

How do I accept a variable from an inputbox() and parse the user input as numeric?

Thanks,
Steve
 
Assuming the user entered only numbers
lcValue = inputbox(.........)
lnValue = VAL(lcValue)

if you only want an integer
lnValue = INT(VAL(lcValue))



David W. Grewe Dave
 
Perfect, I was not aware of "VAL"
Thanks David.

-Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top