This message serves for Google indexing. It only includes the first message of each thread from technical forums. To see the entire thread, the solutions and the technical content related to each message, you need to log in by going to the main page. This can be done at http://www.universalthread.com. If you do not have an account, we encourage you to create one now and start participating in Microsoft .NET and SQL Server related technology forums, just to name a few. Our database contains nearly two millions valuable high end technical messages. Thanks for the generous contribution to everyone who participated on the site so far, including MVP, Microsoft employees and many other well known contributors. The valuable content of the Universal Thread has created a history of 16 years of high end technical content which has helped many consultants, developers and many others in the industry on a daily basis. The site also offers a subscription option that greatly enhances your site experience.


View message
From24/07/1997 20:05:58
Rick Bednarik #011223
Dydacomp Development
Totowa, New Jersey, United States
To  
All


I have a listbox with an alias as the rowsource. The user can select the type of data to display in the listbox by selecting one of three radio buttons. The radio buttons re-create the cursor that is the rowsource for the listbox, and then redisplay the listbox. They do this by calling a method on the form. When I run the compiled EXE from within VFP, everything works great. However, when I run it out of VFP I get a syntax error on the line that resets the rowsource for the listbox. I have narrowed it down to one specific field that is displayed in the listbox, and can now get things to work by selecting that field AS another name. What really scares me is that the init of the form also call the method to build the listbox, and that call works even if I don't use select AS. Does anyone have any ideas how can the same code run correctly one time, and generate an error the next?

TIA