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.

frmRechercheMorphologique - 1<br />

Dim nveaucodegenre$, nveaucodecas$, nveaucodenombre$, nveautemps$, nveaumode$, nveauvoix$, nveauper<br />

sonne$<br />

Private Sub cboGenre_LostFocus()<br />

Dim nveaucode$<br />

mot = txtcode.Text<br />

If Mid(mot, 1, 1) = "n" Or Mid(mot, 1, 1) = "a" Then<br />

If cboGenre.Text = "féminin" Then nveaucodegenre = "f"<br />

If cboGenre.Text = "masculin" Then nveaucodegenre = "m"<br />

If cboGenre.Text = "neutre" Then nveaucodegenre = "n"<br />

ElseIf Mid(mot, 1, 1) = "v" Then<br />

If cboGenre.Text = "présent" Then nveautemps = "p"<br />

If cboGenre.Text = "imparfait" Then nveautemps = "i"<br />

If cboGenre.Text = "futur" Then nveautemps = "f"<br />

If cboGenre.Text = "aoriste" Then nveautemps = "a"<br />

If cboGenre.Text = "parfait" Then nveautemps = "r"<br />

If cboGenre.Text = "pqp" Then nveautemps = "l"<br />

If cboGenre.Text = "-" Then nveautemps = "x"<br />

End If<br />

'txtNouveauCode.Text = nveaucode<br />

End Sub<br />

Private Sub cboNombre_LostFocus()<br />

Dim nveaucode$<br />

mot = txtcode.Text<br />

If Mid(mot, 1, 1) = "n" Or Mid(mot, 1, 1) = "a" Then<br />

If cboNombre.Text = "singulier" Then nveaucodenombre = "s"<br />

If cboNombre.Text = "pluriel" Then nveaucodenombre = "p"<br />

If cboNombre.Text = "duel" Then nveaucodenombre = "d"<br />

ElseIf Mid(mot, 1, 1) = "v" Then<br />

If cboNombre.Text = "actif" Then nveauvoix = "a"<br />

If cboNombre.Text = "moyen" Then nveauvoix = "m"<br />

If cboNombre.Text = "passif" Then nveauvoix = "p"<br />

If cboNombre.Text = "moyen ou passif" Then nveauvoix = "e"<br />

If cboNombre.Text = "déponent moyen" Then nveauvoix = "d"<br />

If cboNombre.Text = "déponent passif" Then nveauvoix = "o"<br />

If cboNombre.Text = "déponent moyen ou passif" Then nveauvoix = "n"<br />

If cboNombre.Text = "impersonnel actif" Then nveauvoix = "q"<br />

If cboNombre.Text = "-" Then nveaumode = "x"<br />

End If<br />

'txtNouveauCode.Text = nveaucode<br />

End Sub<br />

Private Sub cboPersonne_Change()<br />

'Dim nveaucode$<br />

'mot = txtcode.Text<br />

'If Mid(mot, 1, 1) = "a" Then<br />

'End If<br />

End Sub<br />

Private Sub cboTempsCas_LostFocus()<br />

Dim nveaucode$<br />

mot = txtcode.Text<br />

If Mid(mot, 1, 1) = "n" Or Mid(mot, 1, 1) = "a" Then<br />

If cboTempsCas.Text = "nominatif" Then nveaucodecas = "n"<br />

If cboTempsCas.Text = "génitif" Then nveaucodecas = "g"<br />

If cboTempsCas.Text = "accusatif" Then nveaucodecas = "a"<br />

If cboTempsCas.Text = "datif" Then nveaucodecas = "d"<br />

If cboTempsCas.Text = "vocatif" Then nveaucodecas = "v"<br />

ElseIf Mid(mot, 1, 1) = "v" Then<br />

If cboTempsCas.Text = "indicatif" Then nveaumode = "i"<br />

If cboTempsCas.Text = "subjonctif" Then nveaumode = "s"<br />

If cboTempsCas.Text = "optatif" Then nveaumode = "o"<br />

If cboTempsCas.Text = "impératif" Then nveaumode = "m"<br />

If cboTempsCas.Text = "infinitif" Then nveaumode = "n"<br />

If cboTempsCas.Text = "participe" Then nveaumode = "p"<br />

If cboTempsCas.Text = "participe (sens impératif)" Then nveaumode = "r"<br />

End If<br />

'txtNouveauCode.Text = nveaucode

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

Saved successfully!

Ooh no, something went wrong!