I would like to have macro, which behaves differently when argument is defined and when it is not. The manual says, that argument which is omitted equals to an empty string, but I cannot find a way, how to test for string lenght. Has someone already solved this? I tried the following way, but it is not working, as there is no substitution for MENUITEM in the IFDEF statement when macro is invoked. I tried several more complicated ways, but no good results so far. Any suggestions? MPASM 2.15 STRING MACRO STR,MENUITEM STR#V(STRNO): DT STR,0 IFDEF MENUTITEM MENUITEM: EQU STRNO ENDIF ENDM Josef ====================================================================== Electronical devices for chemical laboratory, custom electonics design ---------------------------------------------------------------------- Snail Instruments Josef Hanzal Vojanova 615 phone/fax: +420-311-24433 266 01 Beroun e-mail: snail@iol.cz Czech Republic URL: http://www.vitrum.cz/snail/ ======================================================================