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.

frmGrecHebreu - 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\grechebreu.txt"<br />

file = FreeFile<br />

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

rmTSK.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 />

strong = Replace(strong, "x", "ch")<br />

strong = Replace(strong, "q", "th")<br />

strong = Replace(strong, "f", "ph")<br />

strong = Replace(strong, "w", "o")<br />

strong = Replace(strong, "y", "ps")<br />

strong = Replace(strong, "j", "s")<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

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

Saved successfully!

Ooh no, something went wrong!