Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamicbackcolor
Message
De
19/01/2003 16:58:20
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Dynamicbackcolor
Divers
Thread ID:
00743303
Message ID:
00743303
Vues:
68
ok - it must be sunday or something...

if have a grid and in the init() i put this code:
This.Column3.DynamicBackColor = ;
	iif(InList(ResultDisplay.played_1, ResultDisplay.history_1, ResultDisplay.history_2, ResultDisplay.history_3, ResultDisplay.history_4, ResultDisplay.history_5, ResultDisplay.history_6), ;
		'rgb(192, 192, 192)', ;
		'rgb(255, 255, 255)')
This.Column4.DynamicBackColor = ;
	iif(InList(ResultDisplay.played_2, ResultDisplay.history_1, ResultDisplay.history_2, ResultDisplay.history_3, ResultDisplay.history_4, ResultDisplay.history_5, ResultDisplay.history_6), ;
		'rgb(192, 192, 192)', ;
		'rgb(255, 255, 255)')
This.Column5.DynamicBackColor = ;
	iif(InList(ResultDisplay.played_3, ResultDisplay.history_1, ResultDisplay.history_2, ResultDisplay.history_3, ResultDisplay.history_4, ResultDisplay.history_5, ResultDisplay.history_6), ;
		'rgb(192, 192, 192)', ;
		'rgb(255, 255, 255)')
This.Column6.DynamicBackColor = ;
	iif(InList(ResultDisplay.played_4, ResultDisplay.history_1, ResultDisplay.history_2, ResultDisplay.history_3, ResultDisplay.history_4, ResultDisplay.history_5, ResultDisplay.history_6), ;
		'rgb(192, 192, 192)', ;
		'rgb(255, 255, 255)')
This.Column7.DynamicBackColor = ;
	iif(InList(ResultDisplay.played_5, ResultDisplay.history_1, ResultDisplay.history_2, ResultDisplay.history_3, ResultDisplay.history_4, ResultDisplay.history_5, ResultDisplay.history_6), ;
		'rgb(192, 192, 192)', ;
		'rgb(255, 255, 255)')
This.Column8.DynamicBackColor = ;
	iif(InList(ResultDisplay.played_6, ResultDisplay.history_1, ResultDisplay.history_2, ResultDisplay.history_3, ResultDisplay.history_4, ResultDisplay.history_5, ResultDisplay.history_6), ;
		'rgb(192, 192, 192)', ;
		'rgb(255, 255, 255)')
i do something wrong here. only column 6 should be grayed because the number in column 6 is the only 1 matching in the history columns. but all 6 columns are grayed.
HELP - I GO CRAZY

thanks in advance.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform