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.

fctAnalyseSeptante - 1<br />

Public Function AnalyseSeptante(mot) As String<br />

Dim septante$<br />

Dim analyse$<br />

Dim codemot$<br />

Dim pourcodemot$<br />

Dim origine$<br />

Dim file$, ligne$, motr$, mott$<br />

chercher = mot<br />

file = FreeFile<br />

septante = App.Path & "\tools\septante.txt"<br />

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

Open septante For Input As #file<br />

Do<br />

Input #file, ligne<br />

If InStr(1, ligne, chercher, vbTextCompare) 0 Then<br />

' MsgBox ligne<br />

analyse = Trim(Mid(ligne, Len(mot) + 1, Len(ligne)))<br />

' MsgBox analyse, vbInformation, "Analyse complète"<br />

pourcodemot = InStrRev(analyse, " ", , vbTextCompare)<br />

pourcodemot = Val(pourcodemot)<br />

codemot = Mid(analyse, 1, pourcodemot)<br />

codemot = Trim(codemot)<br />

'MsgBox "Analyse morpho : " & codemot<br />

origine = Mid(analyse, Len(codemot) + 1, Len(analyse))<br />

origine = Trim(origine)<br />

End If<br />

Loop While Not EOF(file)<br />

lose #file<br />

all AfficherAnalyseSeptante(mot, origine, codemot)<br />

nd Function

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

Saved successfully!

Ooh no, something went wrong!