Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert RGB INTO Hexa Value
Message
From
15/07/2007 10:38:49
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01240526
Message ID:
01240540
Views:
24
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform