GetTagId

The GetTagId method returns the numeric tag ID that is used internally to represent the tag.  Tag IDs provide a more advanced means of working with tags and taglists, but many applications can be written entirely without using tag IDs.

LONG GetTagId(
  BSTR TagName // Tag name to return Id for
)


Parameters:
TagName Tag name to return Id for.

Return Values:
Tag id or -1 if the tag name is unknown

Example:
function TagNameToId( TagName )
  {
  return(CAS.GetTagId(TagName));
  }

See Also:
CAS GetTag, CAS GetTagName