Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamicbackcolor
Message
From
19/01/2003 17:05:10
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
19/01/2003 16:58:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00743303
Message ID:
00743304
Views:
10
This message has been marked as a message which has helped to the initial question of the thread.
The rgb() part seems suspicious to me - I have the impression that you should omit the quotation marks, so that you get the colors' numeric value.

Hilmar.

>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.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform