Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid dynamicbackcolor please
Message
 
To
20/04/2006 07:24:12
Suhas Hegde
Dental Surgeon
Sirsi, India
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01114862
Message ID:
01114902
Views:
15
>this complains to use valid dynamicbackcolor except for the first column
>
>
>FOR EACH oCol IN this.Columns
>    oCol.DynamicBackColor = [IIF(oCol.mytext1.oldvalue > ;
>    							oCol.mytext1.value, RGB(0,255,0), RGB(255,0,0))]
>NEXT
>
>this.column1.DynamicBackColor = [IIF(nse_feed.change > 0, RGB(0,255,0), RGB(255,0,0))]
>this.column1.mytext1.value = ''
>
>*****
>
>
>this runs but nothing happens except on the first column
>FOR EACH oCol IN this.Columns
>    oCol.DynamicBackColor = [IIF(]+oCol.mytext1.oldvalue+[ > ]+ ;
>    							oCol.mytext1.value +[, RGB(0,255,0), RGB(255,0,0))]
>NEXT
>
>this.column1.DynamicBackColor = [IIF(nse_feed.change > 0, RGB(0,255,0), RGB(255,0,0))]
>this.column1.mytext1.value = ''
>
If you have property in TextBox Class that you use for Column Control, try this (not tested)
FOR EACH oCol IN this.Columns
    oCol.DynamicBackColor = [IIF(thisform.Grid1.]+oCol.Name+[.mytext1.oldvalue > ]+ ;
    				[thisform.Grid1.]+oCol.Name+[.mytext1.value, RGB(0,255,0), RGB(255,0,0))]
NEXT
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform