I have a shared action button for a view action script function that builds a list of docs and reads some fields in them. I ran into an error reading one of the docs (a needed field was missing from it), so I put in an ‘on error goto’ and saved the script. Still got the original error, so I ran the debugger and when it errored out, surprise, no on error goto in the script! I went back to the database, and there it was as I had entered it. I exited out of Notes, came back in, still the same. Recompiled all script, still the same. The new code shows in the database in the designer, but does not run and doesn’t show when being debugged. Am I on crack or what? Where is it hiding the old code?I had another database do the same thing, but after a few minutes of confusion suddenly the new code started working and appearing in the debugger. ACK!
If there’s one complaint I have about programming in Notes, it’s that I spend 10% of my time programming, and 90% working around all the bizarre things Notes does or does not do. Framesets that forget their targets and generate errors if you switch to working in a different database for a moment, for example, and errors that give you no clue as to which of 500 fields on your form is causing the error. Grumble grumble.