I am getting an ' invalid procedure call or argument' error with
the following code which I am using to break down the line of a text
file. The line's contents are separated by tabs.
tabbing = Chr(9)
Dim nextEntry As String
tabPos = 0
nextTab = 0
Do Until EOF(1)
Line Input #1, nextLine
For i = 0 To 16
nextTab = InStr(tabPos, nextLine, tabbing)
nextEntry = Mid(nextLine, tabPos, nextTab - tabPos)
tabPos = nextTab
the error occurs at
nextTab = InStr(tabPos, nextLine, tabbing)
tabPos value is 0
tabbing value looks ok to me ( a box within inverted commas)
nextLine contains text and a lot of those symbols that are shown as
the tabbing value
I would be grateful if someone could explain how I should be doing
this.
Nod
Archived from group: microsoft>public>vb>syntax