Charles,
This shows the issue more clearly. Indexes are 2 -> 10 instead of 1 to 9
James
use rtl64
#autodim off
use console
use corewin
use stringutil.inc
string t="
four
one
two
three
Four
five
9
8
7
"
'==============================================================================
Sub CreateArray()
int i,lines
Print "Creating Array" cr
StringArray sa
lines = sa.lines(t)
For i = 1 To lines
print "index " i " = " sa.line(i) cr
Next
End Sub
'==============================================================================
Function main() As sys
CreateArray()
pause
End Function
'==============================================================================
main()
end