How do you convert string to integer in VBNet?

Answer

Hi,

Assume you have stored "12" to variable A. If you want to convert this to numric VAL(A) will return 12.00, and you can convert this into integer as int(val(A)).

hope this helps

Improve Answer Discuss the question "How do you convert string to integer in VBNet?" Watch Question

First answer by Rohiniskumar. Last edit by Rohiniskumar. Contributor trust: 121 [recommend contributor]. Question popularity: 11 [recommend question]


Research your answer:

Answers.com > Wiki Answers > Categories > Technology > Computers > Computer Programming > How do you convert string to integer in VBNet?

Our contributors said this page should be displayed for the questions below. (Where do these come from)
If any of these are not a genuine rephrasing of the question, please help out and edit these alternates.
What is sessionstate in vbnet?  Convert from integer to float?  How do you turn integer into string?  What is the difference between vb 6.0 and vbnet 2005?  How do you view datas by using datetimepicker in vbnet?