my string (myStr) is read from a txt file into vb application like this...
'9999', '909', 2051, 'A', 1, 12345
'9999', '909', 2052, 'B', 1, 12346
...
i have 4000 of these records which im placing into a table.
problem is that the last column of the table is a number(4) hence 12345 wont fit.
so i've decided to chop off the last char with ...
newStr = Left(myStr, Len(myStr) - 1). and this works.
but my table now has 9 1234's
so ive decided to chop off the leading 1, (Len(myStr) - 5) that way ill have 4000 unique numbers.
eg
2345
2346
2347
Problem:
when i use the vb remove function from msdn help.
myStr2 = myStr.Remove(Len(myStr) - 5, 1)
i get an error 'invalid qualifier' on myStr
Is this a syntax err or is the vb string.remove()not avaliable?
'9999', '909', 2051, 'A', 1, 12345
'9999', '909', 2052, 'B', 1, 12346
...
i have 4000 of these records which im placing into a table.
problem is that the last column of the table is a number(4) hence 12345 wont fit.
so i've decided to chop off the last char with ...
newStr = Left(myStr, Len(myStr) - 1). and this works.
but my table now has 9 1234's
so ive decided to chop off the leading 1, (Len(myStr) - 5) that way ill have 4000 unique numbers.
eg
2345
2346
2347
Problem:
when i use the vb remove function from msdn help.
myStr2 = myStr.Remove(Len(myStr) - 5, 1)
i get an error 'invalid qualifier' on myStr
Is this a syntax err or is the vb string.remove()not avaliable?