简体   繁体   中英

VB.NET Columns separated by spaces and I need value of 9th column

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM