Returns or sets the initial count of the object
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. |
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.
The following is an example of setting the ASemaphore InitialCount to two.
semTest1.InitialCount=2