Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set different font color for flagged rows on grid
Message
De
23/01/2004 11:13:42
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00869697
Message ID:
00869901
Vues:
18
Yes, myField is a logical field in myCursor.
Where do I set the DynamicForeColor? In THISFORM.Load or THISFORM.Init or THISFORM.Refresh or elsewhere??

>Inge,
>
>You've to set DynamicForeColor only once and it'll be evaluated every time grid or row is refreshed. Is myfield valid field name in your cursor? Wht's it type?
>
>>Sergey,
>>I think I'm still not doing this correctly.
>>To test it out, I've put in a command button, & in it's .CLICK method, I have: thisform.grid1.column1.dynamicforecolor = 'iif(myfield,rgb(255,0,0),rgb(0,0,0))'
>>When I run the program & click on the command button, I get this error message: Expression is invalid. Use a valid expression for dynamicforecolor property. What am I doing wrong? (the control source for my grid is a cursor, myCursor).
>>
>>
>>>If you do this in code
thisform.grid1.column1.dynamicforecolor = 'iif(myfield,rgb(255,0,0),rgb(0,0,0))'
>>>
>>>>Thanks for your reply, Sergey.
>>>>Set thisform.grid1.column1.dynamicforecolor to iif(myfield,rgb(255,0,0),rgb(0,0,0)) ?
>>>>I tried that but got the invalid expression error ??
>>>>
>>>>>Set it to
iif(myfield,rgb(255,0,0),rgb(0,0,0))
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform