Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid
Message
De
05/11/2007 07:06:02
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Grid
Versions des environnements
Visual FoxPro:
VFP 6 SP3
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01266661
Message ID:
01266661
Vues:
51
hi all,

i am generating a cursor dynamically whose column names vary depending on the choices made by the end-user of the software. the column names vary from PER01, PER02, PER03...upto PER12 and they all contain only NUMERIC data. The values contained in this cursor i am displaying in a grid.

Depending on the columns chosen by the user, i store the column name in a form variable - ThisForm.cMonthPercent - along with the join condition - for example, "per01 < 50 Or per02 < 50 or per03 < 50" (the join condition will always contain only the < sign).

i try to use this form variable in the following command -

ThisForm.grdDetails.SetAll("DynamicForeColor","IIF(ThisForm.&cMonthPercent,RGB(255,0,0),RGB(0,0,0))","Column")

but, i cannot get it to work.

What i want to achieve is that if there are any values in the grid that are less than the number 50 (PER01 < 50 Or PER02 < 50 Or PER03 <50), those numbers only should be highlighted in RED whereas the other numbers in the grid should be in BLACK.

With reference to te above example, if any value in PER01 or PER02 Or PER03 is less than 50, it should be be in RED colour.

Can someone help me achieve this result.

With sincere thanks in advance.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform