Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SetAll with form property
Message
De
10/06/1999 17:49:29
 
 
À
10/06/1999 17:44:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00228582
Message ID:
00228585
Vues:
12
>When I run the following code from the form's Init(),
>it works as expected:
>
>thisform.grd_lvl2.SetAll("dynamicbackcolor",;
> "IIF(table.field < 100,RGB(255,0,0),RGB(255,255,255))","Column")
>
>However, when I try to check a form property or even a
>variable like follows:
>
>xxx = .T.
>thisform.grd_lvl2.SetAll("dynamicbackcolor",;
> "IIF(xxx=.T.,RGB(255,0,0),RGB(255,255,255))","Column")
>
>I get the following error message:
>
> Expression is Invalid. Use a valid expression
> for DYNAMICBACKCOLOR property.
>
>All I want to do is check that the user wants to see the
>dynamic backcolor (thisform.turnoncolor = .T.) and the
>table.field value is greater than 100.
>
>What am I doing wrong?

Form property should work Ok, assuming that you assign DynamicBackColor in Form.Init (it may fail if you do it in Grid.Init). Variable will not work, because of scoping problem.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform