Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best place to hold the current RECNO()
Message
 
 
À
13/07/2001 19:02:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00530542
Message ID:
00530563
Vues:
16
Michel,

You should initially set it in Grid.Init and re-set in AfterRowColChange. Also this code reminds me Cetin Basoz highlighted grid. I think, you can just download it and use it. It's a nice and simple control.


>Assuming I have a grid on a form. That grid contains a property nCurrentRec. That holds the current recno. Where in the grid should I put the This.nCurrentRec=RECNO() to initialize that updated value?
>
>I have this in the Init():
>
>
>This.SetAll('DynamicBackColor','IIF(RECNO()=This.nCurrRec,;
> RGB(0,0,128),This.BackColor)','Column')
>This.SetAll('DynamicForeColor','IIF(RECNO()=This.nCurrRec,;
> RGB(255,255,255),This.ForeColor)','Column')
>
>
>Basically, it serves to highlight the current record. We had this for a while in our framework. Then, for some kind of reason, we have removed that initialization. It just can't seem to find the proper place to have that working.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform