Name Property (AMutex)

Returns or sets the name of the object.

Syntax

Object.Name [ = sName ]

The Name property syntax has the following parts:

 

Name

Type

Description

Object

AMutex

AMutex object

sName

BString

A text string used to name the object.

Comments

This property is assigned by the container of the object.

The default name for new objects is the kind of object plus a unique integer. For example, the first new AMutex object is AMutex1 and the second is AMutex2.

An object's Name property must start with a letter and can be a maximum of 40 characters. It can include numbers and underline (_) characters but can't include punctuation or spaces. Although the Name property setting can be a keyword, property name, or the name of another object, this can create conflicts in the programming code. Two objects of different types can't share the same name.

AMutex synchronization objects in different processes with the same Name property will function as if they were a single synchronization object to allow AMutex synchronization between different processes.

Example

The following statement changes the AMutex Name to "MutexAlpha":

mutex1.Name="MutexAlpha"

Applies to

AMutex

See Also

Handle