IF Empty( cText )
Antonio Linares wrote:No, just one char.
But you could use StrTran() to replace CRLFs into ";" or similar
function CountCrLf(cStr)
local num := 1, nret := 0
// Desc: Count the no. of occurences of CRLF (Each line is terminated with a CRLF)
// AtNum() is a function from ct.lib.
do while atnum(CRLF, cStr, num++) != 0
nRet++
enddo
return nRet
#include "FiveWin.ch"
function Main()
local a := Array( 1000000 ), n
local nStep1 := GetTickCount(), nStep2, nStep3
AEval( a, { || Date() } )
nStep2 = GetTickCount()
for n = 1 to 1000000
Date()
next
nStep3 = GetTickCount()
MsgInfo( "AEval() ..." + Str( nStep2 - nStep1 ) + CRLF + ;
"for next ... " + Str( nStep3 - nStep2 ) )
return nil
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 85 guests