Represents the label associated with an object.
Visual Basic |
---|
Public Property Label As String |
Read/write String.
This property only affects objects of type GOTO, IF_COMMAND, ONERROR, and LABEL. For other objects, setting the property has no effect, and getting it always returns the empty string.
For objects of type LABEL, this property is the id of the object. For the other valid types, this property is the label to which execution is redirected when the appropriate conditions are met. For GOTO, redirection always occurs. For IF_COMMAND, the redirection occurs only when the expression is TRUE. For ONERROR, the redirection happens when the error condition is met.