AftPeakTank
Member
- Joined
- Apr 21, 2010
- Messages
- 8
- Programming Experience
- Beginner
Ok, here is the problem,
in vbscript, i was reading parts of streams
i.e.
Even in cases that strLine length was less than the index used to split the string, the program kept running.
Now i am trying to do the same in VB.net, but since the strLine is not always bigger than the index used to break the string, it ives an error.
I do not want to use try catch, because i will have very dirty and uselless code.
I was thinking something like resume next, but i guess it doesnt exist anymore.
Please help....
in vbscript, i was reading parts of streams
i.e.
VB.NET:
teststrid = left (strLine,8)
teststrnm =rtrim( mid (strLine,15,30))
teststrx = mid (strLine,57,8)
teststr = left (strLine,3)
strFormcode = left (strLine, 10)
strSymmetrycode = left (strLine,14)
strSigncode = left (strLine, 10)
Even in cases that strLine length was less than the index used to split the string, the program kept running.
Now i am trying to do the same in VB.net, but since the strLine is not always bigger than the index used to break the string, it ives an error.
I do not want to use try catch, because i will have very dirty and uselless code.
I was thinking something like resume next, but i guess it doesnt exist anymore.
Please help....