InitialCount Property (ASemaphore)

Returns or sets the initial count of the object

Syntax

 Object.InitialCount [ = lInitialCount ]

The InitialCount property syntax has the following parts:

 

Name

Type

Description

Object

ASemaphore

ASemaphore object

lInitialCount

Long

An integer specifying the initial count of the ASemaphore object.

Comments

The InitialCount tells the application how many objects currently have access to the object. The InitialCount must be greater than zero and has a default value of 100.

Example

The following is an example of setting the ASemaphore InitialCount to two.

semTest1.InitialCount=2

Applies to

ASemaphore

See Also

MaxCount