Thanks Cetin see reply to Marcie
>>I know how to do this in design mode I want to do all in code here.
>>
>>Why does this code error:
>>
>>VFP 7.0 SP1
>>Errors at .NEWOBJECT('ChkSelect',.....
>>Error: "Error with chkSelect - Value : Data type mismatch."
>>
>>This is called during init of form.
>>Grid column count is set to -1 in design mode.
>>Grid Record Source is set to (none).
>>The cursor csDateList 1ST Column is a Logical (should not matter not bound yet)
>>BaseCtrls.ChkBase.VALUE is defaulted to .F.
>>
>>
>>
>>WITH THISFORM
>> SELECT csDateList
>>
>> WITH .grdChangeDates
>> .COLUMNCOUNT = 6
>> .DELETEMARK = .F.
>> .SCROLLBARS = 2
>> .HIGHLIGHT = .F.
>> .HIGHLIGHTROW = .F.
>>
>> WITH .Column1
>> .NEWOBJECT('chkSelect', 'cchkBase', 'BaseCtrls')
>>
>> .CURRENTCONTROL = 'chkSelect'
>> .SPARSE = .F.
>> .CONTROLSOURCE = 'csDateList.DateChgSel'
>> .READONLY = .F.
>> .WIDTH = 15
>> .Header1.CAPTION = 'Code'
>> ENDWITH
>>ENDWITH
>>
>
>Ron,
>What's datatype of csDateList.DateChgSel ? And if that's a type suiatable for a checkbox (num or logical) first set controlsource then add checkbox.
>Cetin
What ben makes tracks for what wil be. Words in the air pirnt foot steps on the groun for us to put our feet in to.
Riddley Walker