net-pratique
Messages postés20Date d'inscriptiondimanche 16 novembre 2003StatutMembreDernière intervention21 avril 2013 6 déc. 2003 à 20:54
La fonction est donnée comme exemple bien sur !!
Elle est du genre : Voir ci-dessous
mais je ne voulais pas charger le massage.
Malgré un sentiment de légère agression dans la réponse, je te remercie
De bien vouloir accorder un peut de temps au nouveaux
Function LireDateFicheData(NomFichier As String, NumLigne As Long)
Dim KeyIni As String
If NomFichier = "Fic_BRUT" Then
KeyIni = "NameFich_Fic_BRUT"
ElseIf NomFichier = "Val_CALC" Then
KeyIni = "NameFich_Val_CALC"
End If
Open App.Path & "" & LireINI(KeyIni, "NameFich") For Input As #1
Ligne = 1
Do While Not EOF(1)
Line Input #1, TextLine
If Ligne = NumLigne Then
Exit Do
End If
Ligne = Ligne + 1
Loop
Close #