Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid fonts color
Message
 
À
05/02/2004 06:41:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00873284
Message ID:
00874383
Vues:
50
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform