FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Question to Memoline(),mlcount(),etc.
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Question to Memoline(),mlcount(),etc.
Posted: Mon Mar 31, 2008 01:09 PM

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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Question to Memoline(),mlcount(),etc.
Posted: Mon Mar 31, 2008 08:05 PM
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:
      cTxtFile = MemoRead( cRCFile ) 
      nFrom = 1 

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

Antonio Linares
www.fivetechsoft.com

Continue the discussion