Wednesday, June 10, 2009

Not a sub or function

In my testing of custom Notes applications written for version 7 and prior, some applications throw the "Not a sub or function" error message in the R8.5 client. The errors aren't triggered when the LotusScript Debugger is turned on. This leads me to believe that subtle differences in the compiler versions are the culprit. I opened the application in the 8.5 Designer and ran Recompile All LotusScript from the Tools pull-down menu. This appears to have stopped the errors. The recompile had no adverse impact when going back and testing the application in a R7 client.

1 comments:

John Kingsley said...

I believe this is caused because Notes 8.x doesn't compile script on a form when it loads for performance optimization reasons. Previous versions did, so the sub or function is found. Now, I don't know how you save a design element without compiling the script on it...