Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

Filter and count :- Which is Faster (1 reply)

$
0
0
ncountword is int = 0
searchval is unicode string
searchval = smyprefix+sRepval

========
HFilterStartsWith(WordList,Word,searchval )
FOR EACH WordList
nCountword++
IF nCountword > 0 THEN BREAK
END
IF nCountword > 0 THEN ArrayAdd(arrMyvariable,searchval )
========

FOR EACH WordList WHERE Word [= searchval
nCountword++
IF nCountword > 0 THEN BREAK
END
IF nCountword > 0 THEN ArrayAdd(arrMyvariable,searchval )
======

Which would be faster and why ?? Are there some more Faster Alternatives ??

Viewing all articles
Browse latest Browse all 1914

Trending Articles