Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Andy Kramek
  Where is Andy Kramek?
 Hot Springs Village
 Arkansas - United States
 Andy Kramek
 To: peter gee
  Where is peter gee?
 Hobart
 Australia
 peter gee
 Tags
Subject: RE: pesky read only problem
Thread ID: 78809 Message ID: 78833 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Distribution and InstallShield
Date: Sunday, October 09, 2005 2:20:39 PM         
   


Hi Pete

> after months of working on my project after hours it is ready to show!
> in foxpro 9, the program runs how i want it to.
> on the application builder i have used build... made a win32 executable, and clicked all options but running code.
> i have copied the vfp9r.dll and vfp9renu.dll libraries to the executable folder.
> when i run the executable program the execution gives and error at the point i first write to a table.
> it reports that the "cursor" is read only.
> now this line of code is an insert SQL command that inserts to a *table* (not a cursor). it works fine when running from vfp. the table is not read-only in dos.
> if i skip this step, the program shows a splash-screen, initialises variables, then gets to the main form, then exists without an error code.....


Without knowing exactly what the line of code is, it is hard to guess. Clearly something is wrong at that point and probably you are in the wrong wrok area, or some value that you think exists doesn't (or has a wrong value). But there really isn't enough information here to tell you what that might be.

Have you checked in the debugger to see the state of the system when the error occurs?

> on a related note of distribution, my program is a single form, tab based application, it does not need menu-bars - how do you hide them in the end-application?

Check SET SYSMENU in the help file


Regards
Andy Kramek
Microsoft MVP (Visual FoxPro)
Tightline Computers Inc, Akron Ohio, USA

ENTIRE THREAD

pesky read only problem Posted by peter gee @ 10/9/2005 4:08:24 AM
RE: pesky read only problem Posted by Andy Kramek @ 10/9/2005 2:20:39 PM
RE: pesky read only problem Posted by Paul Walters @ 10/9/2005 4:29:04 PM
RE: pesky read only problem Posted by Andy Beebe @ 10/9/2005 6:38:59 PM
RE: pesky read only problem Posted by Andy Kramek @ 10/9/2005 9:13:54 PM
RE: pesky read only problem Posted by Paul Walters @ 10/9/2005 11:44:13 PM
RE: pesky read only problem Posted by peter gee @ 10/10/2005 2:17:29 PM
RE: pesky read only problem Posted by John Peart @ 10/10/2005 3:05:06 PM
RE: pesky read only problem Posted by peter gee @ 10/10/2005 10:59:44 PM