Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamicbackcolor
Message
From
19/01/2003 16:58:20
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Dynamicbackcolor
Miscellaneous
Thread ID:
00743303
Message ID:
00743303
Views:
67
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.
Next
Reply
Map
View

Click here to load this message in the networking platform