Tetris42
Messages postés53Date d'inscriptionlundi 4 août 2003StatutMembreDernière intervention22 décembre 2003
-
17 oct. 2003 à 13:33
Tetris42
Messages postés53Date d'inscriptionlundi 4 août 2003StatutMembreDernière intervention22 décembre 2003
-
17 oct. 2003 à 15:15
salut j ai trouve un code source sur le forum mais rien a faire y veut pas marcher :
le programme s arrete a errX et y me pete un message "Sub Or Function Not Define"
----------------------------------------------------------------------
Public Function If_file_exists(ByVal lpFilePath As String) As Long
'Dim ErrX
On Error GoTo errX
Open lpFilePath For Input As #1
Close #1
If_file_exists = 1
Exit Function
errX
If Err.Number = 53 Then
If_file_exists = 0
Exit Function
Else
If_file_exists = Err.Number
End If
End Function
----------------------------------------------------------------------
mercil
;)