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.

fctLireCodeMorphArticle - 1<br />

Public Sub LireCodeMorphArticle(code)<br />

ttype = "article défini (d)"<br />

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

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

nombre = Mid(code, 4, 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 />

' 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)<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 = ""<br />

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

End Sub

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

Saved successfully!

Ooh no, something went wrong!