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.

frmHebreuGrec - 1<br />

Option Explicit<br />

ublic numéro As Boolean<br />

rivate Sub Command1_Click()<br />

im ofile$, lfile, strong$, texte$, toto, i, texterev$<br />

im premiereespace, deuxiemeespace<br />

trong = ""<br />

xtResultat.Text = ""<br />

file = App.Path & "\modules\gh\hebreugrec.txt"<br />

file = FreeFile<br />

trong = LCase(txtStrong.Text)<br />

rmTSK.Text.Text = ""<br />

f numéro = False Then<br />

If Len(strong) = 1 Then<br />

strong = "OOOO" & strong<br />

End If<br />

If Len(strong) = 2 Then<br />

strong = "OOO" & strong<br />

End If<br />

If Len(strong) = 3 Then<br />

strong = "OO" & strong<br />

End If<br />

If Len(strong) = 4 Then<br />

strong = "O" & strong<br />

End If<br />

nd If<br />

f numéro = False Then<br />

lse<br />

Open ofile For Input As #lfile<br />

Do<br />

Input #lfile, texte<br />

If texte = strong Then<br />

Do<br />

Loop<br />

End If<br />

Loop While Not EOF(lfile)<br />

Close<br />

Open ofile For Input As #lfile<br />

Do<br />

Input #lfile, texte<br />

Input #lfile, texte<br />

If Left(texte, 1) = "O" Then Exit Do<br />

txtResultat.Text = txtResultat.Text & vbCrLf & texte<br />

If Left(texte, Len(strong)) = strong Then<br />

txtResultat.Text = txtResultat.Text & vbCrLf & texte<br />

If Left(texte, 1) = "O" Then Exit Do<br />

' Do<br />

' Input #lfile, texte<br />

' txtResultat.Text = txtResultat.Text & vbCrLf & texte<br />

'Loop<br />

End If<br />

Loop While Not EOF(lfile)

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

Saved successfully!

Ooh no, something went wrong!