[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
LENGTH           Return Length of Item                          MASM Operator

  LENGTH variable

    Returns the number of BYTE, WORD, DWORD, QWORD, or TBYTE items
    occupied by variable.

       Notes:     The type of the variable determines what element size is
                  used.

                  The value returned by this value is the number preceding
                  the DUP operator in the variable definition.  Therefore,
                  only variables defined using the DUP operator will
                  return values greater than 1.  String constants will
                  allows return 1.

See Also: SIZE
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson