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

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

Postby byte-one » Mon Mar 31, 2008 1: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
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Postby Antonio Linares » Mon Mar 31, 2008 8: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:
Code: Select all  Expand view
      cTxtFile = MemoRead( cRCFile )
      nFrom = 1

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 89 guests