Language Reference Guide : 4. System Classes : CompSource Class : GetTaggedValues Method
 
Share this page                  
GetTaggedValues Method
The GetTaggedValues method returns an array of all the TaggedValues that either contain this tag or whose tags begin with the tag plus a delimiter.
If the component is a ClassSource (see ClassSource Class), the method will search the corresponding TaggedValue array in superclasses for further matching instances. The returned set will be in search order—that is, local instances will always precede inherited ones.
This method has the following syntax:
array of TaggedValue = CompSource.GetTaggedValues([tag = varchar(256)
          [, delimiter = varchar(256)]])
Note:  If no parameters are supplied, an array of all local and inherited tags is returned. If no delimiter is supplied, the delimiter defaults to "."
This method has the following parameters:
tag
Specifies the name of the tag in the TaggedValues array
delimiter
Specifies the delimiter that follows the specified tag. If no delimiter is supplied, the default is a period (".").
For example, parameters tag="test" and delimiter=":" will match the following TaggedValue tags:
"test"
"test:"
"test:one"
They will not match these tags:
"testone"
"tes"
"text:one"
This method returns an array of TaggedValue.