Um, SANITY would have caught those, by the line numbers.. ;\)

Sanity is a UDF that checks the syntax of your script, making sure that paired objects like quotes, parens, and even code sets like If/EndIf all match up. It's a very handy tool to help identify problems like this. Mismatched quotes are probably among the worst, but pairing a For with an EndIf (don't ask) ranks right up there. Sanity finds them all.

You can download Sanity here on KORG or from the Kix library on my web site. It's also part of my Kix development kit.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D