Instructor,
Thanks for the quick reply! You must have a computer tied to you!
Another issue (probably just an oversight, not an actual error):
Scripts-Methods.txt (included with Scripts.zip) says
AkelPad.TextFind ...
Return Value
Number. Character position of the next match.
Source code indicates it returns NOERROR. This results in 0=good, -1=not found. Is that the intended return? Or should it actually return the text position?
It wouldn't be a problem if the text position was NOT returned; if MDI search is done, script can't tell what document text was found in anyway. User has to check (visually) in AkelPad.
Also, I can't seem to get the MDI search to work! I have tried passing the handle to the main AkelPad window (instead of edit window) - still returns -1. What am I doing wrong? (Note: using FR_ALLFILES by itself DOES return 0, but text is not selected and MDI document is not activated, therefore, user probably cannot tell where text was found).
Sorry to be a pest
with these "bugs"; I am including sample scripts (JS and VBS) with each function and these little things turn up as I test them. I want to make sure the documentation is accurate.