Vb6 + condition msflexgrid

hajar205 Messages postés 52 Date d'inscription samedi 10 mai 2008 Statut Membre Dernière intervention 28 juin 2008 - 9 juin 2008 à 02:17
hajar205 Messages postés 52 Date d'inscription samedi 10 mai 2008 Statut Membre Dernière intervention 28 juin 2008 - 9 juin 2008 à 13:13
je voudrai fair une condition dans un msflexgrid

if colonne1 ="mon texte" then colonne2= son valeur

mais comment?????????????

3 réponses

PCPT Messages postés 13272 Date d'inscription lundi 13 décembre 2004 Statut Membre Dernière intervention 3 février 2018 47
9 juin 2008 à 04:21
salut,

if taflex.TextMatrix(x,y)="machin" then taflex.TextMatrix(x,y+1) =...

++
<hr size="2" width="100%" />Prenez un instant pour répondre à [infomsg_SONDAGE-POP3-POUR-CS_769706.aspx ce sondage] svp
0
hajar205 Messages postés 52 Date d'inscription samedi 10 mai 2008 Statut Membre Dernière intervention 28 juin 2008
9 juin 2008 à 13:08
voilà ce que j'ai ecris


If MFG.TextMatrix(1, 0) = "Algorithme et programmation" Then
MFG.TextMatrix(1, 1) = 3

If MFG.TextMatrix(2, 0) = "Gestion commercial" Then
MFG.TextMatrix(2, 1) = 2
End If
End If

Mais le problème c'est lorsque je choisie une autre matière # a celui dans le teste , la ligne reste vide
0
hajar205 Messages postés 52 Date d'inscription samedi 10 mai 2008 Statut Membre Dernière intervention 28 juin 2008
9 juin 2008 à 13:13
pour mieu detailler

j'ai une listechekbox des matières j'ai fait une liaison entre la liste et msflexgrid càd lorsque je choisie une matièrte sera afficher dans la colonne1 de la table MFG ok

maitenant il ma reste d'affecter une valeur (coefficient) a chaque matières choisie

SVP aidez moi
0
Rejoignez-nous