Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp50 - How do you highlight a field in a GRID?
Message
De
02/07/1997 15:56:27
Sonny Chouinard
CHCA Computer Systems Inc.
Lachenaie, Québec, Canada
 
 
À
02/07/1997 15:39:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00038442
Message ID:
00038444
Vues:
33
>How do you highlight a field in a GRID? I want
>my users to browse a GRID and pick the record they
>want with a highlight bar.. thanks

Use the DynamicBackColor Property in the INIT method of the grid like this:

SELECT myTable
GO TOP
THISFORM.nRecTable= RECNO()

THIS.setall("Dynamicbackcolor", "IIF(RECNO()==THISFORM.nRecTable,RGB(64,128,128),RGB(255,255,255))","Column")

and, in the afterRowColChange method of the grid:

SELECT myTable
THISFORM.nRecTable= RECNO()

hope this help...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform