I am facing the following problem. I am doing in a while loop multiple finds and replaces. However, because there are many while the replacements happen the user can click on the document somewhere. When he/she does it then F_ApiFind returns with -1 and the while loop stops. Why this happens? How can I handle such a case?
↧