I have a customer with the issue that (his work restrictions) is causing him to get that dreaded treeview 1000 error every time he exits ME if he had done a search and has not cleared the find list before exiting (arrow button on the find list tool pane and selecting Clear all).
I have located a function that would do the job _FindlstClearAll(), but you can’t call it from the macro run as either _FindlstClearAll(0) or Search^_FindlstClearAll(0) which is critical for being able to place it in a macro followed by Exit. The function is located in search.s but there is no search.mac. Evidentially the search functions are used by the #include search.sh, in other mac files, but the search.sh does not prototype _FindlstClearAll(). The only reference is setting it in a hook to attach to that button.
Any ideas would be appreciated.
Have you considered copying search^_FindLstClearAll to another .S and changing the name and commenting it was code taken from search.s ? Maybe not an optimal way to do it but it would be better then nothing?