Language Reference Guide : System Classes : MethodObject Class : FindTag Method
 
Share this page          
FindTag Method
The FindTag method returns the index of the first occurrence of the specified tag in the TaggedValues array of this method or any same-named methods in its superclasses.
If the first occurrence is in a superclass, the classname parameter is set to the name of that class and returned byref, and the property parameter is set to the method object containing that tag and returned byref.
This method has the following syntax:
index = MethodObject.FindTag(tag = varchar(256)
          [, classname = Byref(varchar(32))]
          [, property = Byref(MethodObject)])
This method has the following parameters:
tag
(Required) Specifies the name of the tag in the TaggedValues array.
classname
Specifies the classname. If classname is provided as a byref string, this string will be set to the classname of the ClassSource to which the MethodObject owning the identified TaggedValue actually belongs (this may be a superclass of the caller’s userclass).
property
Specifies the property. If provided as a byref variable, this will be set to the MethodObject to which the identified TaggedValue belongs.
This method returns the index, or 0 if the entry for this tag is not present.