Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid formatting
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00186188
Message ID:
00186194
Views:
20
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform