Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid quest
Message
De
13/04/2001 19:12:48
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00495397
Message ID:
00495480
Vues:
13
>Another quest, to get fancy, I implemented the following:
>thisform.grid1.SetAll("DynamicBackColor", ;
>"IIF(MOD(RECNO( ), 2)=0, RGB(255,255,255) ;
>, RGB(0,255,0))", "grid1") && Alternate white and green records

You might wanna specify which alias teh "RecNO()" applies to. Like Brad said, the "grid1" is wrong, look in the help file, it will tell you SetAll() needs a class, the example used "Column" as teh third parameter.

Finally, refresh() the grid right after this (unless the form isn't visible yet, then it will eventully be refresh implicitly).
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform