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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

fctlireCBC - 1<br />

Public Function LireCBC(mot)<br />

Dim fichier$, def$, lfile%<br />

lfile = FreeFile<br />

fichier = App.Path & "\modules\CBC\cbc.txt"<br />

def = App.Path & "\modules\KJV\def.htm"<br />

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

mot = UCase(mot)<br />

Open fichier For Input As #lfile<br />

Do<br />

Input #lfile, ligne<br />

If ligne = mot Then<br />

End If<br />

Loop While Not EOF(lfile)<br />

uite:<br />

lose<br />

frmParse2.Text1.Text = ligne<br />

Do<br />

On err GoTo suite:<br />

Input #lfile, ligne<br />

frmParse2.Text1.Text = frmParse2.Text1.Text & vbCrLf & ligne<br />

Loop While Not ligne = "" Or ligne = vbCrLf<br />

file = FreeFile + 1<br />

rmParse2.Text1.Text = Replace(frmParse2.Text1.Text, "~", ",")<br />

f frmParse2.Text1.Text = "" Then<br />

rmParse2.Text1.Text = "" & UCase(mot) & "" & "" & "" & "Pas de définition pour ce mo<br />

." & ""<br />

nd If<br />

Open def For Output As #lfile<br />

rint #lfile, frmParse2.Text1.Text<br />

lose<br />

oad frmBrowser<br />

rmBrowser.WindowState = 0<br />

rmBrowser.cboAddress.Text = def<br />

rmBrowser.Show<br />

nd Function

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

Saved successfully!

Ooh no, something went wrong!