Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
2 questions, please...
Message
De
11/09/2000 17:59:24
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
 
À
11/09/2000 17:12:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00415142
Message ID:
00415166
Vues:
21
Ulises,

I can't help on #2 but here's #1:

In the AfterRowColChange() of your grid, save the PrimaryKey or RecNo() or something to a property of the grid or of the form. Call this MyRec.

Call the REFRESH() of the grid (or of the form) after setting that property.

In the REFRESH() put:
THIS.SetAll([DynamicBackColor], ;
    [IIF(] + THIS.cKeyName + [ = THISFORM.grdMyGrid.MyRec, ] + ;
    [RGB(125, 255, 125), RGB(255, 255, 255))], ;
    [Column])
This makes the row green.


>1. Someone sometime ago posted a method to show one row of a grid in a different background or text color, depending upon the value of that particular record, but can't find it. Could someone please explain how?
>
>2. Sometimes, while working with a form, if some error occurs during development the form remains open and if I click on the x button it just goes disabled and I just can't close the form or modify it in any way. A thisform.release button doesn't work either. Only thing to do is to close VFP and open it again. How can I close that form without having to close VFP?
>Thanks in advance
>Ulises
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform