Parse HTML Text Object Parse HTML Text Object
Version 2.00

 


Description

Returns the value of the last attribute name returned by GetTagAttributeName.

Syntax

object.GetTagAttributeValue[(attributename)]

The attributename argument is a string expression reflecting the name of the attribute in a tag for which it's value is to be returned.  An attribute string comparison is case insensitive.  This argument is optional.

Remarks

Without the attributename argument GetTagAttributeValue returns the value of the last attribute name returned by GetTagAttributeName.  For example, the following code illustrates how GetTagAttributeValue returns a value for each attribute name returned.

strAttributeName = objParseHTMLText.GetTagAttributeName
While strAttributeName <> ""
  Response.Write "Attribute: " & strAttributeName
  Response.Write " Value: " & objParseHTMLText.GetTagAttributeValue & "<br>" & vbCRLF
  strAttributeName = objParseHTMLText.GetTagAttributeName
WEnd

With the attributename argument GetTagAttributeValue returns the value of the attribute name supplied.  If the attribute is what is known as a Boolean value (i.e. NoWrap) the attributes name is returned.  If the attribute does not exist a zero-length string ("") is returned.


Copyright (c) 1999-2002 by Cimarron Ravine, L.L.C.
All Rights Reserved.