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.

fctLireStrongFrAT - 1<br />

Public Function LireStrongFrAT(mot)<br />

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

ofile = App.Path & "\modules\Strong\aten.txt"<br />

lfile = FreeFile<br />

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

mot = "SH" & mot<br />

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

Open ofile For Input As #lfile<br />

Do<br />

rr:<br />

pres:<br />

lose<br />

On Error GoTo err:<br />

Line Input #lfile, ligne<br />

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

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

Do While Not EOF(lfile)<br />

Line Input #lfile, ligne<br />

If Mid(ligne, 1, 2) = "SH" And Len(ligne) < 6 Then<br />

GoTo apres:<br />

End If<br />

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

Loop<br />

End If<br />

Loop While Not EOF(lfile)<br />

If frmAutomatos.Visible = False Then<br />

frmResultatStrong.Show<br />

End If<br />

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

lfile = FreeFile<br />

Open ofile For Output As #lfile<br />

Print #lfile, texte<br />

Close<br />

rmResultatStrong.txtStrong.Text = frmParse2.Text1.Text<br />

rmResultatStrong.txtStrong.Text = Replace(frmResultatStrong.txtStrong.Text, " ", vbCrLf)<br />

rmResultatStrong.txtStrong.Text = Replace(frmResultatStrong.txtStrong.Text, " ", vbCrLf)<br />

rmResultatStrong.Show<br />

nd Function

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

Saved successfully!

Ooh no, something went wrong!