Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo RowSource not accepting Integers in EXE
Message
 
 
To
03/11/1998 23:29:24
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00153290
Message ID:
00154424
Views:
25
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()
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform