I’m relatively new to VB.NET and am wondering how I can get the value of the ninth column. Columns are separated by spaces.
The value im getting will be added to a int so say int = 2 then the column is 32 then the int will be 34
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try this :
Dim col9 as Integer = Integer.Parse(s.Split(New Char() {" "c})(8))I am splitting the string with spaces and finding the 9th column. If you want 32nd column, instead of 8 you should use 31.