While FindString(a$,Chr(10),0)
a$=ReplaceString(a$,Chr(10)," ")
Wend
While FindString(a$,Chr(13),0)
a$=ReplaceString(a$,Chr(13)," ")
Wend
While FindString(a$," ",0)
a$=ReplaceString(a$," "," ")
Wend
If (Len(a$)>0)
numwords=CountString(Trim(a$)," ")+1
Else
numwords=CountString(Trim(a$)," ")
EndIf
ProcedureReturn numwords
EndProcedure
I have a routine that counts the number of words in a document. The problem it is a little slow on bigger documents. Can anyone convert this code to asm (x64)
to see if it would be faster
