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.

fctLireKJVD - 1<br />

Public Function LireKJVD(mot)<br />

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

lfile = FreeFile<br />

fichier = App.Path & "\modules\KJV\kjvd.dat"<br />

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

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

mot = UCase(mot)<br />

Open fichier For Input As #lfile<br />

lose<br />

Do<br />

Input #lfile, ligne<br />

If ligne = mot Then<br />

End If<br />

frmParse2.Text1.Text = ligne<br />

Loop<br />

Do<br />

Loop While Not EOF(lfile)<br />

Input #lfile, ligne<br />

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

Exit Do<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 />

rite #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!