Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Gridhighlighter Colors
Message
De
08/09/2005 13:41:52
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01047761
Message ID:
01047793
Vues:
7
>I have tried multiple colors in a grid before but so far have not cracked it even with help from the experts
>
>Let me try again
>
>I have a table called manifest which has a field called status
>
>If status is A I want to color the row blue
>If B the row will be red
>If C the row will be green
>
>How do I do it?
>
>A real layman's explanation would be greatly appreciated
>
>Thanks
>
>Colin Northway

another way ( rigid ( ABCDE... only ) but faster.
AND NOT HARD CODED !!!
* grid Init
this.addproperty("statusColor[3]")
this.statusColor[1] = 0xFF0000
this.statusColor[2] = 0x00FF00
this.statusColor[3] = 0x0000FF

this.Setall('DynamicBackColor';
,'this.statusColor[ASC(manifest.status)-64]')
extreme rigid but faster:
this.Setall('DynamicBackColor';
,'BITLSHIFT(255,8*(ASC(manifest.status)-65])')
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform