Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid dynamicbackcolor please
Message
 
À
20/04/2006 07:24:12
Suhas Hegde
Dental Surgeon
Sirsi, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01114862
Message ID:
01114902
Vues:
16
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform