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.

fctLireCodeMorphPronom - 1<br />

Public Function LireCodeMorphPronom(code)<br />

ttype = "pronom (r)"<br />

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

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

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

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

'TYPE<br />

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

If ttype2 = "r" Then ttype2 = "relatif (r)"<br />

If ttype2 = "d" Then ttype2 = "démonstratif (d)"<br />

If ttype2 = "q" Then ttype2 = "interrogatif (q)"<br />

If ttype2 = "i" Then ttype2 = "indéfini (i)"<br />

If ttype2 = "t" Then ttype2 = "intensif (t)"<br />

If ttype2 = "x" Then ttype2 = "réfléchi (x)"<br />

If ttype2 = "e" Then ttype2 = "réciproque (e)"<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 />

If genre = "-" Then genre = "commun (-)"<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 />

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

pe2) - 3) & Mid(cas, 1, Len(cas) - 3) & Mid(genre, 1, Len(genre) - 3) & Mid(nombre, 1, Len(nombre)<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 = ttype2<br />

frmAssistant.cbo3.Text = cas<br />

frmAssistant.cbo4.Text = genre<br />

frmAssistant.cbo5.Text = nombre<br />

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

End Function

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

Saved successfully!

Ooh no, something went wrong!