name Property

See Also            Applies To

Specifies the name of a script object. Read-only at run time.

Syntax

[strName =] object.name

Parameters

strName

A character string that identifies the object. The string must begin with an alphabetic character followed by alphanumeric characters. For example, CheckboxStock and c24546 are acceptable while 4CheckBox is not supported.

object

A script object.

Remarks

When the object is created by a design-time control, both the id and name script object properties are set by the design-time control's id property. Therefore, the script object name and id properties typically have an identical value.

Note   When writing script, it is the id property that identifies an object.

When editing design-time controls: