Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid textbox color in red if !empty(memo)
Message
De
29/09/2000 12:56:40
 
 
À
29/09/2000 11:44:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00422619
Message ID:
00422680
Vues:
9
>In your select that you use as the record source for your grid, add the following to your select:
>
>iif(!empty(memofieldname),00000255,16777215) as rowcolor
>
>Then, in each column of your grid, set dynamicBackColor = yourCursorName.rowcolor.
>FYI 255 is what getcolor() returns for red, and 16777215 is white.
>
>That does the trick for me.

So why not just use RGB() function and specify:

RGB(255,0,0) for Red
RGB(255,255,255) for White
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform