Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error when complex exe is run
Message
 
To
19/03/2010 16:56:52
General information
Forum:
Visual FoxPro
Category:
Project manager
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows 7
Network:
Windows 2000 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01455768
Message ID:
01455776
Views:
72
>My program runs great in development, seems to compilel fine, but I get the message "Cannot access the selected table" when I try to run the .exe.

This is usually a timing issue. The error message comes up when you have listboxes, comboboxes or grids that use a table in the RecordSource/RowSource and at the time of displaying the control, the table is not yet or not anymore available. If you this error is repeatable, you could remove the RecordSource or RowSource from one control at a time until the error disappears.

You could also check out if the form is prematurely made visible. A common cause for showing a form before the Init event has been completed is calling the SetFocus method somewhere in your code. VFP makes forms visible when any of its controls receives the focus.

> which I was "forced" to create when I dropped a visual class on the form.

Why were you forced? VFP creates a form set when you drop a form class onto the form. You can remove the unneeded forms and toolbars via the menu. When there's only one form remaining, you can remove the form set via the menu, too.
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform