Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27513

VS 2010 Converting String from InputBox to Integer

$
0
0
I am currently trying to use the Integer Try Parse Method to convert strings entered via an inputbox so that they can be put into an array. However, when I try the following code:
Dim Count As Integer

Code:

      For Count = 0 To domestic.Length - 1
            domestic(Count) = Integer.TryParse(InputBox("Keep entering the sales for each month.  If nothing typed, will be interpeted as zero", "New data entry"))

        Next Count

I get the error message: Overload resolution failed because no accessible 'TryParse' accepts this number of arguments.
How do I fix this?

Viewing all articles
Browse latest Browse all 27513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>