Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Different forecolor in the edit grid
Message
De
02/09/2003 07:55:58
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00823940
Message ID:
00825243
Vues:
21
>Cetin,
>
>Just one final thing, not important but would just finish this nicely.
>
>Now that I'm setting the background of certain columns depending in the values in them, the highlight of the current record row does not work for these colums. IE there set to white. I've been looking at your class and trying to work out to add to my previous line, to take into account the current record.
>
>This.ColCReq_Rings.DynamicBackColor="IIF(LEN(TRIM(STRIPS.Req_Rings))=0,IIF(RecNo(.RecordSource) == .nCurRec,RGB(255,255,255),RGB(.cCurRecForeColor),RGB(0,255,0))"
>
>Now quite right I know, how do I pass the .cCurRecForeColor into the RGB command?
>
>Regards :)

Not tested of the top of my head :
This.ColCReq_Rings.DynamicBackColor = ;
  "IIF(LEN(TRIM(STRIPS.Req_Rings))=0,IIF(RecNo('"+this.RecordSource+;
  "') == this.nCurRec,RGB(255,255,255),RGB("+this.cCurRecForeColor+;
  ")),RGB(0,255,0))"
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform