OT ItemCount version 1
OT ItemCount(inObject {; inTag}) Number
→
Parameter Type Description
inObject Longint A handle to an object
→
inTag String Tag of an embedded object
→
Function result Number The item count
←
Discussion
OT ItemCount returns the number of top level items in the referenced object. Items in embedded objects are not included in the count.
If inObject is not a valid object handle, an error is generated, OK is set to zero, and zero is returned.
If the tag is not passed or is empty, the count of top level items in the object is returned.
If the tag is passed, is not empty, and is a valid item reference for an embedded object, the count of top level items in the embedded object is returned.
Otherwise an error is generated, OK is set to zero, and zero is returned.
See Also

