MaxCount Property (ASemaphore)

Returns or sets the maximum count of the object

Syntax

 Object.MaxCount [ = lMaxCount ]

The MaxCount property syntax has the following parts:

 

Name

Type

Description

Object

ASemaphore

ASemaphore object

lMaxCount

Long

An integer specifying the maximum count of the ASemaphore object.

Comments

The MaxCount tells the application how many objects can have access to the object.

Example

The following is an example of setting the ASemaphore MaxCount to one.

semTest1.MaxCount=1

Applies to

ASemaphore

See Also

InitialCount