Check out the KGEN / Kix Development Suite on my web site.. KGen employs the Sanity() UDF which would find things like "vars in strings" and mismatched objects, as well as undeclared variables that would then become GLOBALs. This is a free tool available for download with simple registration.

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