Summary: VB example
Public Shared Sub UseVariableParameters() Shared Sub UseVariableParameters (ParamArray list() as??Integer)??
???? For??i as Integer = 0??to list.Length -1??
????????Console. WriteLine(list(i))
???? Next i??
???? Console.WriteLine()
End Sub
< p>
????Public Function bAlreadyOpen() Function bAlreadyOpen(ByVal psProcessName As String) As Boolean
????????Try
< br>????????????mProcess = New Mutex(False, psProcessName)
????????????If mProcess.WaitOne(10, False) Then
????????????????bAlreadyOpen = False
????????????Else
???????? ????????bAlreadyOpen = True
????????????End If
????????Catch Err As Exception
? ???????????Call ErrHandler(Err.Message, APP_NAME)
????????End Try
????End Function
p>
——————
Love life and love new and interesting things
The past cannot be changed
The future can be created
Hope Hope to make everyone’s life more convenient
The world is better
a guy who loves IT and life
Original: Big column VB example