>>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