My only observation is that "as_date" and "as_String" rely on a "Null" value but don't consider an empty string.
Maybe "NZ()" rather than "isNull" would make them more reliable.
Hi John,
Thank you.
These codes are some 40 years old, and I have never found a signal that there was something missing. But adept them for your purposes.
Your example was for retrieving records based on field-values, and in the tables I don't use ZLS-values.
Internally I work with controls having a value (control > "") or controls having no value (control & "" = "").
Probably I convert ZLS-values to Null's before inserting in the SQL-string.
But I will reconsider it in my environment.
At the end I replace all "= Null" by "IS NULL"
What I now also see is that As_text has an optional argument "on_null" that is not used. Dropping that argument "could" give some compile-errors in one of my 100+ applications. I will check that.
Last edited: