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.

fctLireTMN - 2<br />

End If<br />

Loop While Not EOF(lfile)<br />

apres:<br />

Close<br />

frmBible.txtPassage.Text = ""<br />

texte = frmParse2.Text1.Text<br />

texte = Replace(texte, "0", "")<br />

texte = Replace(texte, "1", "")<br />

texte = Replace(texte, "2", "")<br />

texte = Replace(texte, "3", "")<br />

texte = Replace(texte, "4", "")<br />

texte = Replace(texte, "5", "")<br />

texte = Replace(texte, "6", "")<br />

texte = Replace(texte, "7", "")<br />

texte = Replace(texte, "8", "")<br />

texte = Replace(texte, "9", "")<br />

frmBible.txtPassage.Text = texte<br />

'ofile = App.Path & "\tools\temp.txt"<br />

'lfile = FreeFile<br />

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

'Print #lfile, frmParse2.Text.Text<br />

'Close<br />

'lfile = FreeFile<br />

'Open ofile For Input As #lfile<br />

'frmBible.txtPassage.Text = ""<br />

' Do<br />

' On Error GoTo suite:<br />

' Input #lfile, ligne<br />

' If InStr(1, ligne, verset) 0 Then<br />

' debut = InStr(1, ligne, " " & verset)<br />

' 'versetsuivant = " " & Str(Val(verset) + 1)<br />

' fin = InStr(1, ligne, Str(Val(verset) + 1))<br />

' If fin = 0 Then fin = InStr(1, ligne, "fin du chapitre") - 1<br />

' frmBible.txtPassage.Text = Mid(ligne, debut + 3, (fin - debut) - 2)<br />

' Exit Do<br />

'<br />

'End If<br />

'Loop While Not EOF(lfile)<br />

'suite:<br />

'Close<br />

frmBible.txtPassage.Text = Replace(frmBible.txtPassage.Text, "~", ",")<br />

frmBible.txtPassage.FontSize = 12<br />

frmBible.txtPassage.Font = "Times"<br />

frmBible.lblchapitre = livre & " " & chapitre & ":" & verset<br />

End Function

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

Saved successfully!

Ooh no, something went wrong!