Language Reference Guide : System Classes : CompSource 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 component or—if it is a ClassSource (see ClassSource Class)—its superclasses.
This method has the following syntax:
indexCompSource.FindTag(tag = varchar(256)
          
[, classname = Byref(varchar(32))])
This method has the following variable and parameters:
CompSource
Specifies the frame, procedure, or user class
tag
(Required) Specifies the name of the tag in the TaggedValues array
classname
Specifies the name of the class Byref. If the object calling this method is a ClassSource, this string is set to the class name of the ClassSource to which the identified TaggedValue actually belongs (this may be a superclass of the caller).
This method returns the index, or 0 if the entry for this tag is not present.