cs_petchy
Messages postés710Date d'inscriptionjeudi 20 février 2003StatutMembreDernière intervention19 mai 2015
-
28 janv. 2006 à 16:38
cs_petchy
Messages postés710Date d'inscriptionjeudi 20 février 2003StatutMembreDernière intervention19 mai 2015
-
28 janv. 2006 à 19:04
bonjour
pouvez me dire si il y à une erreur dans le code,car quand je lance mon programme,et que je click pour ouvrir la FORM contenant les données,il me marque qu'il ne trouve pas se dossier,mais pas à chaque fois
Private Sub Form_Load()
FileName = (App.Path & "\BD\Famille.ini")
Open FileName For Input As #1
If Err <> 0 Then
MsgBox "Introuvable : " & FileName, vbCritical, "ERREUR"
Exit Sub
End If
R = 0
c = 0
txt = ""
Do Until EOF(1)
Line Input #1, Data
For i = 1 To Len(Data)
Char = Mid(Data, i, 1)
If Char = "," Then
c = c + 1
txt = ""
ElseIf i = Len(Data) Then
If Char <> Chr(34) Then txt = txt & Char
comb_famille.AddItem txt
txt = ""
ElseIf Char <> Chr(34) Then
txt = txt & Char
End If
Next i
c = 0
R = R + 1
Loop
Close #1
comb_famille.AddItem "----"
Call iniliste(0)
Call Rafresh1("SELECT code_psa FROM Articles ORDER BY famille_psa")
End Sub
merci
@ plus
petchy