Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Highlighting grid rows
Message
De
20/02/1998 11:13:18
 
 
À
20/02/1998 11:08:59
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00080119
Message ID:
00080120
Vues:
28
>I am trying to hightlight some grid rows so the user can highlight just his records.
>
>The first example works, the second doesn't.
>This code is in a Command button click()
>
>Example 1:
>myGrd.SetAll("dynamicbackcolor", ;
>"IIF(myfield = 'Bob', RGB(255,0,0), RGB(255,255,255))", "Column")
>***Works
>
>Example 2:
>l_user = "Bob"
>myGrd.SetAll("dynamicbackcolor", ;
>"IIF(myfield = l_user, RGB(255,0,0), RGB(255,255,255))", "Column")
>***Gives a error.
>
>
>How can I get example 2 to work.
>
>Thanks,
>
>Jerry Tovar

Example 2:
l_user = "Bob"
myGrd.SetAll("dynamicbackcolor", ;
"IIF(myfield ='"+l_user+"', RGB(255,0,0), RGB(255,255,255))", "Column")
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform