ghuysmans99
Messages postés2496Date d'inscriptionjeudi 14 juillet 2005StatutContributeurDernière intervention 5 juin 20161 27 juil. 2005 à 11:34
ou alors a la place de faire :
If Dir(chemin & "wall2.bmp", vbDirectory) = vbNullString Then
Else
Kill chemin & "wall2.bmp"
End If
fais ca :
If Not Dir(chemin & "wall2.bmp", vbdirectory) = vbnullstring then
kill chemin & "wall2.bmp"
end if
croftman
Messages postés110Date d'inscriptiondimanche 23 janvier 2005StatutMembreDernière intervention 2 avril 2010 13 juil. 2005 à 15:56
Merci pour ton aide, j'ai corriger cela, j'eseper que ca ira maintenant.
econs
Messages postés4030Date d'inscriptionmardi 13 mai 2003StatutMembreDernière intervention23 décembre 200824 13 juil. 2005 à 09:11
Un peu plus de commentaires auraient été les bienvenus.
Sinon, c'est pas mal.
Juste une petite remarque :
A quoi celà sert-il de faire une instruction IF sans commande dans le THEN ?
-------------------------------------------
If Dir(chemin & "wall2.bmp", vbDirectory) = vbNullString Then
Else
Kill chemin & "wall2.bmp"
End If
-------------------------------------------
Il suffit de changer la condition du IF :
-------------------------------------------
If Dir(chemin & "wall2.bmp", vbDirectory) <> vbNullString Then
Kill chemin & "wall2.bmp"
End If
-------------------------------------------
wallp = chemin & "wall2.bmp"
If Dir(wallp, vbDirectory) = vbNullString Then
wallp est-elle une variable contenant vraiment un chemin de dossier ? (vbDirectory) ... pas sûr ...
ritchy01
Messages postés41Date d'inscriptionmardi 16 septembre 2003StatutMembreDernière intervention20 décembre 2009 11 juil. 2005 à 13:45
27 juil. 2005 à 11:34
If Dir(chemin & "wall2.bmp", vbDirectory) = vbNullString Then
Else
Kill chemin & "wall2.bmp"
End If
fais ca :
If Not Dir(chemin & "wall2.bmp", vbdirectory) = vbnullstring then
kill chemin & "wall2.bmp"
end if
13 juil. 2005 à 15:56
13 juil. 2005 à 09:11
Sinon, c'est pas mal.
Juste une petite remarque :
A quoi celà sert-il de faire une instruction IF sans commande dans le THEN ?
-------------------------------------------
If Dir(chemin & "wall2.bmp", vbDirectory) = vbNullString Then
Else
Kill chemin & "wall2.bmp"
End If
-------------------------------------------
Il suffit de changer la condition du IF :
-------------------------------------------
If Dir(chemin & "wall2.bmp", vbDirectory) <> vbNullString Then
Kill chemin & "wall2.bmp"
End If
-------------------------------------------
wallp = chemin & "wall2.bmp"
If Dir(wallp, vbDirectory) = vbNullString Then
wallp est-elle une variable contenant vraiment un chemin de dossier ? (vbDirectory) ... pas sûr ...
11 juil. 2005 à 13:45