Skip to content

GET_RECORD_MULTIPLICITY ​

The command GET_RECORD_MULTIPLICITY retrieves the maxmimum possible number of records rows in an attribute.

Syntax ​

leo-grammar
#-->RESULT ecode:intValue

Parameters ​

none

Returns ​

  • ecode (intValue) - Contains the error code or is 0 in case of success.

Details ​

See Also ​

ADD_REC_ROW
MOVE_RECORD_ROW
REMOVE_REC_ROW
GET_REC_ATTR_ROW_ID
GET_REC_CLASS_ID
GET_REC_ATTR_ROW_COUNT
GET_OWNER_OBJ_OF_REC_ROW
GET_ALL_REC_ATTR_ROW_IDS

Examples ​

asc
SET clname:"Start"
SET aname:"Responsible"

CC "Core" GET_CLASS_ID classname:(clname)
SET clid:(classid)

IF (ecode != 0)
{
  CC "AdoScript" ERRORBOX ("There is no such class")
  EXIT
}

CC "Core" GET_ATTR_ID classid:(clid) attrname:(aname)
SET aid:(attrid)

IF (ecode != 0)
{
  CC "AdoScript" ERRORBOX ("There is no such attribute")
  EXIT
}

CC "Core" GET_RECORD_MULTIPLICITY attrid:(aid)

IF (multiplicity = 0)
{
  CC "AdoScript" INFOBOX ("Infinite rows are allowed")
}
ELSE
{
  CC "AdoScript" INFOBOX ("Maximum rows is " + (STR multiplicity))
}
  • get all ADOxx Dynamic modeltypes
  • get all ADOxx Static modeltypes
  • get all ADOxx modeltypes
  • print 'em

Versions and Changes ​

Available since ADOxx 1.3