Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set the grid cell
Message
De
23/06/2005 11:56:44
 
 
À
23/06/2005 11:40:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01025757
Message ID:
01025898
Vues:
10
Compare your code to mine! When you ask for one color, you get one color!!!! And that's what you have done!
thisform.grd1.column2.DynamicBackColor='iif(field='xxx',RGB(255,64,64),RGB(255 ,255 ,255 ))' 
thisform.grd1.column2.SPARSE=.F.
thisform.grd1.refresh()
Please note that this is ALL the code you need in the command button. And don't change the first line, except for other color values!

>For to understund I added a command butoon on the form, on the click event, I added the following code:
>select crsrgrd
>scan
>	if alltrim(crsrgrd.field)='xxx'
>		thisform.grd1.column2.dynamicbackcolor='rgb(125,112,23)'
>		thisform.grd1.column2.SPARSE=.F.
>		thisform.grd1.refresh()
>	endif
>endscan
>When I click all the column color changed.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform