what is the point in TextAreaLen( textarea[,units] )? well ofcourse it tells the length in chars of the text, but it according to the manual it should also be able to tell how many lines there are. It does'nt! It counts words!
Lazze
Lazze
testtext$="This is just a test to test the meaining of TextAreaLen" win=CreateWindow("test",20,40,800,600,Desktop(),7) panel=CreatePanel(0,0,800,600,win,0) txt=CreateTextArea(10,10,200,200,panel,1) canvas=CreateCanvas(220,10,200,200,panel) SetBuffer CanvasBuffer(canvas) ClsColor 255,255,255 Cls Color 0,0,0 SetTextAreaText txt,testtext$ LockTextArea txt lines1=TextAreaLen(txt,1) lines2=TextAreaLen(txt,2) Notify "TextAreaLen(txt,1): "+lines1+" TextAreaLen(txt,2): "+lines2 While WaitEvent()<>$803 Wend