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.

fctRechercherNuttall - 1<br />

Public Function RechercherNuttall(mot)<br />

Dim ofile$, lfile%, ligne$<br />

ofile = App.Path & "\modules\dictionnaires\nuttall.txt"<br />

lfile = FreeFile<br />

recherche = mot<br />

recherche = UCase(recherche)<br />

frmDictionnaires.txtResultat.Text = ""<br />

Open ofile For Input As #lfile<br />

On Error GoTo err:<br />

Do<br />

Line Input #lfile, ligne<br />

If Mid(ligne, 1, Len(recherche) + 1) = recherche & "," Then<br />

frmDictionnaires.txtResultat.Text = frmDictionnaires.txtResultat.Text & " " & ligne<br />

Do<br />

Line Input #lfile, ligne<br />

If ligne = "" Then Exit Do<br />

frmDictionnaires.txtResultat.Text = frmDictionnaires.txtResultat.Text &<br />

ligne<br />

Loop<br />

End If<br />

Loop While Not EOF(lfile)<br />

rr:<br />

lose<br />

nd Function

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

Saved successfully!

Ooh no, something went wrong!