Tag Property

       

Returns or sets an expression that stores any extra data needed for your program. Unlike other properties, the value of the Tag property isn't used by Visual Basic; you can use this property to identify objects.

Syntax

object.Tag

object.Tag [= expression]

The Tag property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
expression A string expression identifying the object. The default is a zero-length string ("").

Remarks

You can use this property to assign an identification string to an object without affecting any of its other property settings or causing side effects.