Button.toString

Returns a string representation of the button object.

Method of Button

Syntax

toString()

Parameters

None

Description

The Button object overrides the toString method of the Object object; it does not inherit Object.toString. For Button objects, the toString method returns a string representation of the object ("button,id=<value of id property>").

MetaScript calls the toString method automatically when a button is referred to in a string context (for example, a string concatenation).

Example

The following example assigns the toString value of a Button object to myVar:

See also

Object.toString

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.