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.

fctLireBHSUnicode - 1<br />

Public Function LireBHSUnicode(livre, chapitre, verset)<br />

Dim ofile, lfile, ligne, recherche, textefinal, ofile2, LFile2<br />

ofile = App.Path & "\modules\BHS\text.rtf"<br />

ofile2 = App.Path & "\modules\BHS\WLC.rtf"<br />

lfile = FreeFile<br />

recherche = livre & "--" & chapitre & "-" & verset<br />

Open ofile2 For Input As #lfile<br />

Do<br />

Line Input #lfile, ligne<br />

frmParse.txtBHS.Text = ligne<br />

If Mid(frmParse.txtBHS.Text, 1, Len(recherche)) = recherche Then<br />

frmParse2.Text1.TextRTF = ligne<br />

Exit Do<br />

'LFile2 = FreeFile + 1<br />

'Open ofile For Output As #LFile2<br />

'Write #LFile2, ligne<br />

End If<br />

Loop While Not EOF(lfile)<br />

lose<br />

oad frmParse2<br />

rmParse2.Show<br />

lfile = FreeFile<br />

Open ofile For Input As #lfile<br />

Line Input #lfile, ligne<br />

textefinal = ligne<br />

Close<br />

frmBible.txtPassage.Text = StrConv(textefinal, vbFromUnicode)<br />

Load frmParse<br />

frmParse2.Text1.Text = frmParse2.Text1.Text<br />

frmParse2.Show<br />

frmParse2.Show<br />

nd Function

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

Saved successfully!

Ooh no, something went wrong!