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.

fctAvantLireStrong - 1<br />

Option Explicit<br />

ublic Function AvantLireStrong(mot)<br />

im corrwh$, phrase$, lfile, premierespace, deuxiemeespace, numéro, nstrong$<br />

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

file = FreeFile<br />

Open corrwh For Input As #lfile<br />

o<br />

nput #lfile, phrase<br />

If Left(phrase, Len(mot)) = mot Then Exit Do<br />

oop While Not EOF(lfile)<br />

On Error Resume Next<br />

remierespace = InStr(1, phrase, " ", vbTextCompare)<br />

uméro = Trim(Mid(phrase, premierespace, (Len(phrase) + premierespace + deuxiemeespace) - 2))<br />

euxiemeespace = InStr(1, numéro, " ", vbTextCompare)<br />

strong = Left(numéro, Val(deuxiemeespace))<br />

ot = Trim(nstrong)<br />

nd Function

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

Saved successfully!

Ooh no, something went wrong!