Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Long command for column dynamic background
Message
De
04/02/2014 13:22:44
Rob Clapworthy
Bespoke Software Systems
Royaume Uni
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01593139
Message ID:
01593160
Vues:
52
Hi Naomi

My code for the setbackgroundcolor
LPARAMETERS mtwup1,cmat_type,mzedit

cmat_type=ALLTRIM(cmat_type)

DO CASE 
 CASE EMPTY(mtwup1) and !medit
  mcolour=rgb(224,224,218)
 CASE !EMPTY(mtwup1) and cmat_type="Dry"
  mcolour=RGB(0,255,0)
 CASE !EMPTY(mtwup1) and cmat_type="Blend"
  mcolour=RGB(255,255,255)
 CASE !EMPTY(mtwup1) and cmat_type="UV"
  mcolour=RGB(255,100,0)
 OTHERWISE
  mcolour=rgb(80,80,80)
ENDCASE

RETURN mcolour

  * 1) Grey for empty field
  * 2) Green for full not blend
  * 3) Brown for full Blend
  * 4) Blue for UV
Getting the error "Data type is invalid for this property" when I call from the grids Init Method:

thisform.rxpageframe1.page1.grdWip.COLUMN8.dynamicbackcolor=thisform.setbackgroundcolor(wipdata.wup1,wipdata.mat_type,medit)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform