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

Post Reply
User avatar
byte-one
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria
Contact:

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

Post by byte-one »

Hello all!
Are the memo and text functions from harbour limited to 256 characters per line as in clipper?
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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 
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply