With the informations, i can solve the problem and help
the customer today.
Best Regrds
Uwe
![Laughing :lol:](./images/smilies/icon_lol.gif)
Code: Select all | Expand
IF Empty( cText )
Antonio Linares wrote:No, just one char.
But you could use StrTran() to replace CRLFs into ";" or similar
Code: Select all | Expand
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
Code: Select all | Expand
#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