Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Find String Length
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Syntax:   @SizeStr(string)
 
            name SIZESTR textitem
 
  See also: INSTR, SUBSTR, CATSTR, TEXTEQU, SIZE, Angle Brackets (<>),
            expression operator (%)
 
  Description:
 
     The @SizeStr macro function returns the length of a text item in
     characters. The @SizeStr function will not expand macros or
     expressions unless you use the expression operator (%). A zero
     indicates a null (empty) string.
 
     The SIZESTR directive performs the same function but assigns the
     result to <name>. These two lines are equivalent:
 
          namelength   TEXTEQU     @SizeStr(<Denise>)
          namelength   SIZESTR     <Denise>
                                   ;namelength is 6
 
     The <name> is a unique symbolic name, <string> is a string, and
     <textitem> must be a text item.
     See: text item
                                    -♦-