Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert RGB INTO Hexa Value
Message
De
15/07/2007 10:38:49
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01240526
Message ID:
01240540
Vues:
28
>Ok Naomi,
>
>This code seems to go..
>
> #DEFINE iColor_Verte  RGB(255,255,191)
>
>    WITH THIS
>      TEXT To  .cBackColorGrid NOSHOW TEXTMERGE PRETEXT 15
>    ICASE(v_AgendaPhar.lgest=.F.,RGB( 251,155,184 ),v_AgendaPhar.sinecessaire,RGB(191,191,255),
>    ICASE(nRec = 0,16777215,ICASE( v_AgendaPhar.nRec=1,iColor_Verte,RGB(234,244,255))))
>      ENDTEXT
>      #UNDEF iColor_Verte
>ThanK

Just... why do you nest Icase()s?
 #DEFINE iColor_Verte  0xBFFFFF

    WITH THIS
      TEXT To  .cBackColorGrid NOSHOW TEXTMERGE PRETEXT 15
    ICASE(not v_AgendaPhar.lgest, 0xB89BFB, v_AgendaPhar.sinecessaire, 0x00FFBFBF, nRec = 0,0xFFFFFF, v_AgendaPhar.nRec=1,iColor_Verte,0xFFF4EA, 0xffffff)
      ENDTEXT
      #UNDEF iColor_Verte
And, btw, you missed the default value (I put white) in the end. I just tried to omit it:
?ICASE(1=2,0)
and it returned .null.

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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform