Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Highlighting changed records in a grid
Message
De
20/06/1998 19:07:47
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
19/06/1998 09:56:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00105492
Message ID:
00110292
Vues:
30
>
>This only picks up the red - no green. :(
>
>It seems I can do one or the other but not both.
>
>Any suggestions?

I've tried this:
dime naColors(3)
naColors(1)=rgb(255,255,255)
naColors(2)=rgb(255,255,127)
naColors(3)=rgb(255,144,255)

and later, in the grid

.dynamicbackcolor="naColors(nColorCode)"

In my case, the nField always has valued 1 to 3; in your case, you may be using a cursor where an additional field nColorCode may be added to contain just such numbers, like this:

replace all nColorcode with IIF(alias.changed, 2, IIF(alias.rdelete, 3, 1))

Of course, you may use your colors. In my case it worked real nice and fast (and my video card is just a S3 Trio, no particular champion of speed).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform