<< Prev        Next >>

ID : 5163

MutexID

Function

To return the ID of Mutex object.

Syntax

MutexID(MutexName)

Guaranteed entry

MutexName
Designate the name of Mutex object by string type data.

Return value

Return the ID of Mutex object by integer type data.

Description

Return the ID of Mutex object.

If there is no Mutex object with the designated MutexName, -1 will be returned.

Attention

Example

Sub Main
	Dim n As Integer
	n = MutexID(S[10])
	If n = -1 Then Exit Sub
	TakeMutex n
	' Statements
	GiveMutex n
End Sub

ID : 5163

<< Prev        Next >>