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: