15.07.2013 Views

Microsoft Visual Basic - Encyclopaedia Gentium Boni

Microsoft Visual Basic - Encyclopaedia Gentium Boni

Microsoft Visual Basic - Encyclopaedia Gentium Boni

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

fctLectureBhsLxx - 1<br />

Public Function LectureBhsLxx(fichier, passage, finverset)<br />

Dim lfile, ligne$, fichiertemp, LFile2, textefinal$, msg$, remplace$<br />

frmBHSLXX.txtGauche.Text = ""<br />

frmBHSLXX.txtDroite.Text = ""<br />

fichiertemp = App.Path & "\modules\parallel\temp.txt"<br />

lfile = FreeFile<br />

LFile2 = FreeFile + 1<br />

Open fichier For Input As #lfile<br />

Open fichiertemp For Output As #LFile2<br />

Do<br />

tabulation)<br />

Input #lfile, ligne<br />

If Left(ligne, Len(passage)) = passage Then<br />

Do<br />

bulation, Len(ligne))<br />

Input #lfile, ligne<br />

tabulation = InStr(1, ligne, " ")<br />

frmBHSLXX.txtGauche.Text = frmBHSLXX.txtGauche.Text & vbCrLf & Mid(ligne, 1<br />

frmBHSLXX.txtDroite.Text = frmBHSLXX.txtGauche.Text & vbCrLf & Mid(ligne, t<br />

Loop While Not ligne = finverset<br />

Print #LFile2, frmBHSLXX.txtGauche.Text<br />

'MsgBox (frmBHSLXX.txtGauche.Text)<br />

'MsgBox fichiertemp, , "fichiertemp"<br />

Exit Do<br />

End If<br />

Loop While Not EOF(lfile)<br />

lose<br />

emplace = Replace(frmBHSLXX.txtGauche.Text, " ", vbCrLf, 1)<br />

Open fichiertemp For Input As #LFile2<br />

lose<br />

Do<br />

Input #LFile2, ligne<br />

'msg = MsgBox(ligne)<br />

Loop While Not EOF(LFile2)<br />

nd Function

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!