>>How do you detect if a memory variable exists without causing a program to stop?
>
>Use vartype(myVar)<>'U'
>
>Or use type('MyVar') <> 'U' for more complex cases.
type('MyVar') <> 'U' wouldn't work if you have a field with the same name :-)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.