Page 1 of 1

Question to Memoline(),mlcount(),etc.

Posted: Mon Mar 31, 2008 1:09 pm
by byte-one
Hello all!
Are the memo and text functions from harbour limited to 256 characters per line as in clipper?

Posted: Mon Mar 31, 2008 8:05 pm
by Antonio Linares
Günther,

The main problem with MemoLine() is that it starts from the beginning of the text everytime you extract a line so it is slow.

FWH provide a function ExtractLine() that it is very fast (as it reuses the current in text position) and that does not have any lenght limitation:

Code: Select all

      cTxtFile = MemoRead( cRCFile ) 
      nFrom = 1 

      while nFrom < Len( cTxtFile ) 
         cLine = ExtractLine( cTxtFile, @nFrom ) 
         ... 
         SysRefresh() 
      end