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.

fctLatinFrancais - 2<br />

recherche3 = motlatin & " :"<br />

recherche4 = motlatin & " ("<br />

Open ofile For Input As #lfile<br />

Do<br />

Line Input #lfile, ligne<br />

If Mid(ligne, 1, Len(recherche)) = recherche Or _<br />

Mid(ligne, 1, Len(recherche2)) = recherche2 Or _<br />

Mid(ligne, 1, Len(recherche3)) = recherche3 Or _<br />

Mid(ligne, 1, Len(recherche4)) = recherche4 Then<br />

frmDicoLatFr.Text2.Text = ligne<br />

Exit Do<br />

End If<br />

Loop While Not EOF(lfile)<br />

lose<br />

f motlatin "" And frmDicoLatFr.Text2.Text = "" Then<br />

frmDicoLatFr.Text2.Text = motlatin & ": mot inconnu."<br />

nd If<br />

ANALYSE MORPHOLOGIQUE<br />

file = FreeFile<br />

Open fichier For Input As #lfile<br />

o<br />

Line Input #lfile, ligne<br />

on récupère la morphologie<br />

' les codes sont renseignés à cette adresse: http://users.erols.com/whitaker/wordsdoc.h<br />

m<br />

'tous les types de mots possibles<br />

If Left(ligne, 1) "*" And _<br />

InStr(1, ligne, "-") 0 And _<br />

InStr(1, ligne, ",") = 0 And _<br />

InStr(1, ligne, ";") = 0 Then<br />

uite:<br />

If Mid(ligne, 1, 1) = "*" Or ligne = "" Then GoTo suite:<br />

Call AnalyseMorphoLatin(ligne)<br />

frmDicoLatFr.List1.AddItem (ligne)<br />

Do While Not EOF(lfile)<br />

Line Input #lfile, ligne<br />

If Left(ligne, 1) "*" And _<br />

InStr(1, ligne, "-") 0 And _<br />

InStr(1, ligne, ",") = 0 And _<br />

InStr(1, ligne, ";") = 0 Then<br />

Call AnalyseMorphoLatin(ligne)<br />

frmDicoLatFr.List1.AddItem (ligne)<br />

Loop<br />

End If<br />

oop While Not EOF(lfile)<br />

pres:<br />

lose<br />

nd Function<br />

Else<br />

GoTo suite:<br />

End If

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

Saved successfully!

Ooh no, something went wrong!