Returns or sets the maximum count of the object
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. |
The MaxCount tells the application how many objects can have access to the object.
The following is an example of setting the ASemaphore MaxCount to one.
semTest1.MaxCount=1