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.

fctLireCodeMorphNom - 1<br />

Public Function LireCodeMorphNom(code)<br />

ttype = "nom (n)"<br />

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

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

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

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

' CAS<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<br />

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

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

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

'NOMBRE<br />

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

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

' TYPE<br />

If ttype2 = "c" Then ttype2 = "(nom commun) (c)"<br />

If ttype2 = "p" Then ttype2 = "(nom propre) (p)"<br />

' AFFECTATIONS<br />

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

frmAnalyseMorphologique.lblanalyse.Caption = Mid(ttype, 1, Len(ttype) - 3) & Mid(cas, 1, Len(cas) -<br />

3) & Mid(genre, 1, Len(genre) - 3) & Mid(nombre, 1, Len(nombre) - 3) & Mid(ttype2, 1, Len(ttype2)<br />

- 3)<br />

'2) je renseigne les ComboBox de l'Assistant de recherche morphologique<br />

Load frmAssistant<br />

frmAssistant.cbo1.Text = ttype<br />

frmAssistant.cbo2.Text = cas<br />

frmAssistant.cbo3.Text = genre<br />

frmAssistant.cbo4.Text = nombre<br />

frmAssistant.cbo5.Text = ttype2<br />

frmAssistant.cbo6.Text = ""<br />

End Function

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

Saved successfully!

Ooh no, something went wrong!