Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid formatting
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00186188
Message ID:
00186194
Vues:
19
>>Simple grid problem that's driving me nuts. I'm trying to disable a column in my grid if a logical field (users.logyes) is .T. I can't get the enabled property to behave. The error I'm getting is "data type is invalid for this property. Any ideas?
>>
>>llenabled = 'IIF(users.logyes,.F.,.T.)'
>>THISFORM.grid1.SETALL("enabled",llenabled,"column")
>>
>>Thanks,
>>
>>John.
>
>Suggest you replace llenabled with EVAL(llenabled) in SetAll(). As written it's trying to stuff a string into a logical property.

Or, on second thought, lose the variable assignment bit altogether. Why not just THISFORM.Grid1.SetAll("Enabled", NOT Users.LogYes, "Column") (or put your IIF() in there if you feel you must).

HTH,
Rich
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform