Text to number

T

Tom Ogilvy

cdbl(Textbox1.Text)

or if an integer

clng(textbox1.text)


or just set it to a variable declared to be the proper type

Dim dblVal as double, lngVal as Long

dblVal = textbox1.Text
lngVal = Textbox2.Text
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top