3 messages in org.openoffice.fr.progRéf. : Re: [prog] Faire une boucle
FromSent OnAttachments
FrançoiseNov 16, 2006 9:39 pm 
Francois GattoNov 16, 2006 10:32 pm 
FrançoiseNov 17, 2006 12:20 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Réf. : Re: [prog] Faire une boucleActions...
From:Françoise (fran@versateladsl.be)
Date:Nov 17, 2006 12:20:01 am
List:org.openoffice.fr.prog

Merci François c'est tout à fait ce que je recherchais :)

Sub Supprimer_premiere_ligne Dim f1 As Integer, f2 as integer Dim uneLigne As String dim identite as string, resultat as string identite = "C:\Documents and Settings\Françoise\Bureau\Formulaire\Sources\formulaire.xml" f1 = FreeFile ' obtenir un numéro de fichier ouvert Open identite For input As #f1 resultat = "C:\Documents and Settings\Françoise\Bureau\Formulaire\Sources\resultat.xml" f2 = FreeFile ' obtenir un numéro de fichier ouvert Open resultat For output As #f2 '*** Effacer la première ligne du fichier formulaire.xml Line Input #f1, uneLigne '1 '***Ecrire toutes les autres lignes

While not eof(1) Line Input #f1, uneLigne'2 Print #f2, uneLigne Wend MsgBox "Le fichier resultat.xml est maintenant dans le dossier Sources" Close End Sub