Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Indexing Question
Message
De
23/02/2001 09:30:16
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00478788
Message ID:
00478808
Vues:
24
Thanks for the suggestions - I will give them a try.

>Hi!
>
>I don't know exactly if following will work, its just an idea.
>
>Make function specially for DynamicBackColor and call it there. Put there code like following:
>
>
>if recno("MyAlias")<> thisform.OldRecNo
>  thisform.OldRecNo = recno("MyAlias")
>  thisform.MyValue = thisform.MyValue + 1
>endif
>
>IF MOD(thisform.MyValue, 2)=0
>  return lnGrey
>else
>  return lnBackground
>endif
>
>
>Probably, the function will be called for each column and each row. When row changes, the value of special row counter increases and thus color changes. There might be also a problem with even/odd rows (the same row becomes gray or white when scrolling), so I assume it is not a good solution.
>
>Another solution is to make a special field for cursor where you can re-calculate a real row number each time when indexing changes (I assume cursor is changable). Thna use that value in your DynamicBackColor expression.
>
>HTH.
Will Jones
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform