=_vfp.docmd("SET Century off"),_vfp.docmd("SET DATE YMD")Since expressions are evaluated, and I couldn't really decide the type of the value returned by these two (value is .null.), this should work as a workaround:
TRANSFORM(_vfp.docmd("SET Century off")) + TRANSFORM(_vfp.docmd("SET DATE YMD"))IOW, since we don't care about what they return, may as well convert them into strings and add them as such.
_vfp.docmd("SET Century off") and _vfp.docmd("SET DATE YMD")which may work (works after a ? in command window - don't have a report at hand to try), or you may try with an OR instead, need to make sure BOTH get executed, and not sure about that with logical shortcut evaluation.
iif(isnull(_vfp.docmd("SET Century off")), _vfp.docmd("SET DATE YMD"), null)once we're sure it always returns a null.