1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| Function indicator(ByRef Nom As String, ByRef Object_1 As String, ByRef Object_2 As String, ByRef Object_3 As String, ByRef Object_4 As String, ByRef Object_5 As String, ByRef mSeconds As String, ByRef ObjectVar1 As String, ByRef ObjectVar2 As String, ByRef ObjectVar3 As String, ByRef ObjectVar4 As String, ByRef ObjectVar5 As String, ByRef ObjectVar6 As String, ByRef ClassVar1 As String, ByRef ClassVar2 As String, ByRef ClassVar3 As String, ByRef ClassVar4 As String, ByRef ClassVar5 As String, ByRef ClassVar6 As String, ByRef GlobalVar1 As String, ByRef GlobalVar2 As String, ByRef GlobalVar3 As String, ByRef GlobalVar4 As String, ByRef GlobalVar5 As String, ByRef GlobalVar6 As String) As String
indicator = vbnullstring
* indicator = "KO"
try
******* If My.Computer.FileSystem.DirectoryExists(Nom) Then
*********** Dim nbDirectories As Integer = My.Computer.FileSystem.GetDirectories(Nom).Count
*********** Dim nbFiles As Integer = My.Computer.FileSystem.GetFiles(Nom).Count
*********** If nbDirectories >= 0 OrElse nbFiles >= 0 Then
*************** indicator = "OK"
*********** End If
******* End If
catch e as exception
indicator = "KO"
end try
End Function |
Partager