[RESOLVED] [2005] Distinguishing if data is a string
Hi Everyone,
I am pulling data from a text file on my local machine. My problem is that is each line of data could be an alphanumeric string, or just a pure integer string. (I only want to import the integer string)
How can I programmaticaly differentiate each line in the text file over being alpha numeric or integer?
Below is an example of the lines in my text file:
Quote:
9585632
This is a test 4562
9653
548 Blah Blah Blah
In the above example, I would only like to import the integer lines. So the program should only grab 9585632 and 9653
Re: [2005] Distinguishing if data is a string
Code:
Dim intResult As Integer
If Integer.TryParse("LINE TO CHECK", intResult) Then
'Do Something
End If
Re: [2005] Distinguishing if data is a string
Thanks bmahler,
It works perfectly.