Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Forecolor flexibility in grid
Message
De
28/01/1999 04:46:15
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
27/01/1999 13:15:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00176326
Message ID:
00181220
Vues:
12
>
>v_apptbookframe.ccolor_1 is char ie: 255,0,0
>
>It did not work.
>
>My code is:
>this.column2.dynamicbackcolor = ;
> "iif(.t., rgb(" + v_apptbookframe.ccolor_1 + " ),rgb(0,0,255))"
>
>Program did not bomb but the grid did not colorize. Any other suggestions??
>
>Thanx Neil
>DaDigiDoc@aol.com
Hi Neil,
Grid dynamic is interesting in that it doesn't bomb when you put an expression that would cause error normally. ie:
? iif(.t., rgb(0,0),1) && Error
? iif(.t., rgbc()) && Error
etc. Or it not necessarily be an error but expression doesn't evaluate to a valid color number. ie:
? "I'm here" && No error but char value
this.columns(1).dynamicbackcolor = "I'm here"
It doesn't bomb but simply color is not applied.
"iif(.t., rgb("  + v_apptbookframe.ccolor_1 +  " ),rgb(0,0,255))"
style works. Debugout v_apptbookframe.ccolor_1 value to see if it's really error free rgb() triple representation (ie: "0,0,,0" is erroneous). And debugout
eval("iif(.t., rgb("  ;
  + v_apptbookframe.ccolor_1 ;
  +  " ),rgb(0,0,255))")
to see if it really evaluates to a valid color number.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform