...but it produces a "Function name is missing ) while processing line if mlen < meml(eval(&memofld))" error ...
Do not know whether Randy has already answered you, but:
Why not change the macrosubstitution with evaluation, e.g. to use the following syntax:
if mlen < meml(eval( EVAL(memofld) ))
HTH
Zlatin Zlatev,
MCSD (VS6)Make solutions, not programs!