>>I have a related problem.
>>
>>In my second grid I have currently the following
>>
>>WITH thisform.grdOperators
>> .colEmail.DynamicCurrentControl = "iif(not EMPTY(csrOperators.Email),'chkEn','chkDis')"
>> .colNetSend.DynamicCurrentControl = "iif(not EMPTY(csrOperators.NetSend),'chkEn','chkDis')"
>>
>> .colPager.DynamicCurrentControl = "iif(.F.,'chkEn','chkDis')"
>> .colSMS.DynamicCurrentControl = "iif(.F.,'chkEn','chkDis')"
>> .colTwitter.DynamicCurrentControl = "iif(.F.,'chkEn','chkDis')"
>>ENDWITH
>>
>>However, csrOperators is not even used. The grid's column uses a combobox with RowSourceType = 3 and the RowSource =
>>'select * from csrOperators into cursor cTemp'
>>
>>I want to enable / disable checkboxes based on the selected operator (the EMail, etc. fields are in the csrOperators and cTemp).
>>
>>Will it work adding (iiif (seek(GridAlias.op_Code, 'csrOperators','op_code') and not empty (...)
>>
>>e.g. do you think adding SEEK here will help?
>
>
>Should work.
Looks like I found a problem. LEN(Operator.nNetSend) returns 100 even though the field is empty. I thought LEN in VFP behaves the same as in SQL Server.
UPDATE. Yes, after I added ALLTRIM it now works. Thanks again.
If it's not broken, fix it until it is.
My Blog