Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamicbackcolor in a browse Command
Message
From
02/04/2009 12:45:36
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01392695
Message ID:
01392781
Views:
42
How about something like
USE myTable
BROWSE NAME oBrowse NOWAIT
oBrowse.setall("dynamicbackcolor","IIF(exp,RGB(x,y,z),RGB(a,b,c))","column")
BROWSE LAST
Update......Just noticed this is same as Tore's but without the formatting


>Hi all,
>
>I want to have a dynamicbackcolor in a browse Command.
>
>it's possible ?
>
>
>#DEFINE ROUGE_LOC    	RGB(255,0,0)
>#DEFINE BRUN_CL_LOC    	RGB(255,128,0)
>
>
>CREATE CURSOR Temp ( Name c(20) , nPrice N(8,4) )
>INSERT INTO Temp "DUPONT jean" , 14 
>
>
>Brows Field Name , nPrice:IIF(  BETW( nPrice , 1 , 9 ) , ROUGE_LOC     ,  BRUN_CL_LOC     )
>
>
>
>
>Thank in advance
>
>BHT
Previous
Reply
Map
View

Click here to load this message in the networking platform