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.

fctLireATFrN - 1<br />

Public Function LireStrongATFrN(mot)<br />

If mot = "" Then Exit Function<br />

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

ofile = App.Path & "\modules\Strong\shf.dat"<br />

lfile = FreeFile<br />

If Left(mot, 1) = "0" And Len(mot) = 4 Then<br />

mot = "0" & mot<br />

GoTo bonmot:<br />

'0776 > 00776<br />

ElseIf Left(mot, 2) = "00" And Len(mot) = 4 Then<br />

mot = "00" & mot<br />

GoTo bonmot:<br />

'0076 > 00076<br />

ElseIf Left(mot, 3) = "000" And Len(mot) = 4 Then<br />

mot = "000" & mot<br />

GoTo bonmot:<br />

'0006 > 00006<br />

End If<br />

bonmot:<br />

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

Open ofile For Input As #lfile<br />

Do<br />

Line Input #lfile, ligne<br />

If Left(ligne, Len(mot)) = mot Then<br />

Line Input #lfile, ligne<br />

'ligne = Mid(ligne, Len(mot), Len(ligne))<br />

repere = InStr(1, ligne, " \")<br />

repere2 = InStr(repere + 1, ligne, "\n")<br />

ligne = Mid(ligne, repere, Len(ligne))<br />

repere2 = InStr(2, ligne, "\n")<br />

mothebreu = Mid(ligne, 1, repere2)<br />

mothebreu = Replace(mothebreu, "\", "")<br />

mothebreu = Trim(mothebreu)<br />

Do<br />

Line Input #lfile, ligne<br />

If Left(ligne, 1) = "0" And Len(ligne) < 7 Then GoTo plusloin:<br />

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

Loop<br />

End If<br />

Loop While Not EOF(lfile)<br />

lusloin:<br />

lose<br />

01079<br />

' 1079 \Ggenethv\n genete {ghen-et-ay}<br />

vient d 'un dérivé présumé de \\1074\\; n f<br />

'LSG - naissance 1; 1<br />

1) naissance, depuis la naissance<br />

oad frmResultatStrong<br />

exte = frmParse2.Text1.Text<br />

trong = mot<br />

exte = Trim(texte)<br />

exte = Replace(texte, "\\", "")<br />

exte = Replace(texte, "#", "")<br />

exte = Replace(texte, "1a)", vbCrLf & "1a) ")<br />

exte = Replace(texte, "1b)", vbCrLf & "1b) ")<br />

exte = Replace(texte, "1c)", vbCrLf & "1c) ")<br />

exte = Replace(texte, "1d)", vbCrLf & "1d) ")<br />

exte = Replace(texte, "1e)", vbCrLf & "1e) ")<br />

exte = Replace(texte, "1f)", vbCrLf & "1f) ")<br />

exte = Replace(texte, "2a)", vbCrLf & "2a) ")

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

Saved successfully!

Ooh no, something went wrong!