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.

fctLireCodeMorphVerbe - 1<br />

Public Function LireCodeMorphVerbe(code)<br />

On Error GoTo apres:<br />

type = "verbe (v)"<br />

soit le verbe est NORMAL<br />

f Len(code) = 6 Then<br />

Mode = Mid(code, 2, 1)<br />

temps = Mid(code, 3, 1)<br />

voix = Mid(code, 4, 1)<br />

personne = Mid(code, 5, 1)<br />

nombre = Mid(code, 6, 1)<br />

lse ' soit le verbe est PARTICIPE, dans ce cas il est plus long d'un caractère (le CAS)<br />

Mode = Mid(code, 2, 1)<br />

temps = Mid(code, 3, 1)<br />

voix = Mid(code, 4, 1)<br />

cas = Mid(code, 5, 1)<br />

genre = Mid(code, 6, 1)<br />

nombre = Mid(code, 7, 1)<br />

nd If<br />

MODE<br />

If Mode = "i" Then Mode = "indicatif (i)"<br />

If Mode = "s" Then Mode = "subjonctif (s)"<br />

If Mode = "o" Then Mode = "optatif (o)"<br />

If Mode = "m" Then Mode = "impératif (m)"<br />

If Mode = "n" Then Mode = "infinitif (n)"<br />

If Mode = "p" Then Mode = "participe (p)"<br />

If Mode = "r" Then Mode = "impératif (r)"<br />

TEMPS<br />

'If temps = "2f" Then temps = "futur second"<br />

'If temps = "2a" Then temps = "aoriste second"<br />

'If temps = "2l" Then temps = "pqp second"<br />

'If temps = "2r" Then temps = "parfait second"<br />

If temps = "p" Then temps = "présent (p)"<br />

If temps = "i" Then temps = "imparfait (i)"<br />

If temps = "f" Then temps = "futur (f)"<br />

If temps = "a" Then temps = "aoriste (a)"<br />

If temps = "x" Then temps = "parfait (x)"<br />

If temps = "y" Then temps = "plusqueparfait (y)"<br />

If temps = "z" Then temps = "futur du parfait (z)"<br />

VOIX<br />

If voix = "a" Then voix = "actif (a)"<br />

If voix = "m" Then voix = "moyen (m)"<br />

If voix = "p" Then voix = "passif (p)"<br />

If voix = "e" Then voix = "moyen ou passif (e)"<br />

CAS (pour les participes)<br />

If cas = "n" Then cas = "nominatif (n)"<br />

If cas = "g" Then cas = "génitif (g)"<br />

If cas = "a" Then cas = "accusatif (a)"<br />

If cas = "d" Then cas = "datif (d)"<br />

If cas = "v" Then cas = "vocatif (v)"<br />

GENRE (pour les participe)<br />

If genre = "m" Then genre = "masculin (m)"<br />

If genre = "f" Then genre = "féminin (f)"<br />

If genre = "n" Then genre = "neutre (n)"<br />

PERSONNE<br />

If personne = "1" Then personne = "1ère personne (1)"<br />

If personne = "2" Then personne = "2ème personne (2)"<br />

If personne = "3" Then personne = "3ème personne (3)"<br />

NOMBRE<br />

If nombre = "s" Then nombre = "singulier (s)"<br />

If nombre = "p" Then nombre = "pluriel (p)"<br />

AFFECTATIONS<br />

1) je renseigne la petite fenêtre Analyse Morphologique<br />

VERBES

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

Saved successfully!

Ooh no, something went wrong!