Hi everyone. I've been stuck on this one for three days now and still can't figure out is going wrong.
I'm reading through a text file one line at a time, checking the contents of the line and then trying extract a piece of information from it using StringFunctions...
Do While Line <> "0 TRLR"
FinalText.Append("Record: ").Append(i).Append(CRLF)
tmpLine = TextReader1.ReadLine
Log(tmpLine) 'write the line to LogCat
If tmpLine.contains("INDI") Then ' A person.
NewRecord = True
'parse out individual id
tmpINDI(i) = sf.MidExtract(tmpLine,"@","@") 'crash happens here
FinalText.Append("INDI: ").Append(tmpINDI(i)).Append(CRLF)
'go and get record details
Do While NewRecord
tmpLine, in this instance = "0 @I1@ INDI"
Is this a bug in stringfuncions or, more likely, something I've got wrong?
Any help would be most welcome
Thanks for looking
Penfound