Kenneth,
>>Which specific line gives you the error?
>In Form.Init, the line that sets the RowSource :-
>>> THISFORM.cboProductList.RowSource = lcProduct+'.Name,Contents,Product_ID'
lcProduct must be non character at that point. Open the debug windows and put a suspend right before that line (or set a breakpoint). You might try setting the RowSourceType before setting the RowSource.
>This is also done in cboProductList.Init. Here it works OK and we get the desired records into the list.
>
>If I set it againg in Form.Init, the Syntax Error occurs. Well, just to see if it goes on, I Ignored. The rest of the program works fine, but the cbo is empty (no list).
>
>This problem only happens if I run the EXE version. If I Run Form from within VFP, everything's perfect, including all the records in the cbo.
>
>David, this looks like a difficult one. I think we just put it down here, and I find other ways (perhaps use the AddListItem approah) to get it done.
There must be something different about your development SET and PATH environment causing the dev time to work differently than the EXE.
FWIW by cComboBox class adds an array to the cbo and a SQL method which selects into the array and does a Requery()