Hi Aurel,
This is faster on the Oxygen side:
string pText = Space (255)
sys pt=strptr ptext
sys lpos,b,j,p
FOR Lpos = 0 TO LCount-1
SendMessage richedit1,EM_GETLINE,Lpos,pt
'convert to bstring & show line in edit control
'LText = pText
'LText = rtrim(ltrim(LText))
'LText =Mid(Ltext,1,3)
j=1
p=pt
do
b=*p and 255
if b>32 then exit do
p++
j++
end do
'
src[Lpos]=LText=mid(pText,j,3)
Next
'array filed
print "Array filled..."
Charles