Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid fonts color
Message
 
To
05/02/2004 06:41:39
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00873284
Message ID:
00874383
Views:
51
LOCAL m_activecoll
local lnColor, cfld
m_activecoll = thisform.GrdInvRes.ActiveColumn
cfld = EVALUATE("xtabresult."+FIELD(m_activecoll,"xtabresult"))  && Change the name of the cursor (xtabresult) if you need
do case
   case cfld = 'NEG'
      lnColor = rgb( 255, 0, 0 )
   case cfld $ 'POS AFF'
      lnColor = rgb( 0, 255, 0 )
otherwise
      lnColor = rgb( 0, 0, 0 )
endcase
return lnColor
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform