om.SaxAttributes.getLength

Returns the number of attributes in the list.

Syntax

getLength()
  RETURNING result INTEGER

Usage

The getLength() method returns the number of attributes in the current SAX attribute list.

Use this method with getName() and getValueByIndex() to retrieve attributes by position.

DEFINE attrs om.SaxAttributes,
       index INTEGER
...
FOR index = 1 TO attrs.getLength()
    DISPLAY attrs.getName(index), " = ", attrs.getValueByIndex(index)
END FOR