Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Build exe - "Cannot update the cursor" 1

Status
Not open for further replies.

xBaseDude

MIS
Jan 31, 2002
357
US
So I'm using vfp60 from the projmgr, trying to generate an exe of my humble app.

I'm getting this err..."Cannot update the cursor"

Any ideas as to what the fox is telling me?

TIA - Wayne
 
xBasedude

Once possibiltiy could be that you have files in your project with attributes set to read-only eg: class libraries etc. . Reset the attribute field and re-build
 
Yes, it is likely you have something set to Read-Only. I have this problem all the time, but I use Visual SourceSafe. I find the quick solution to the problem is to check-out all the files in the project before building and then check them in again afterwards.

Not the best solution (I will track it down one day when I get time) but it works for me! "I love work. I could sit and stare at it for hours..."
 
HOW are you building your app?

If from the command line:
DO build.app with myprojct.pjx, myproj.exe

leave off the file extensions.

DO build.app with myprojct, myproj
Attitude is Everything
 
I have gotten this message if I did a SELECT ... INTO CURSOR, and then tried to add data to that cursor or replace existing data.

However, you can add/replace data in a cursor that was created with the CREATE CURSOR command.
 
Thank-You.

Your advise was right on target. The read-only attrib was set on some vcx files.

When the exe started however it opened, showed the form for a second, then closed.

If I was in 26 land, I'd say I was missing a foundation read....Do I need to explictly add a read to the form object?

Regards - Wayne
 
Wayne

If I was in 26 land, I'd say I was missing a foundation read....Do I need to explictly add a read to the form object?

Did you want to start a new thread on this?

To answer, you need to use the READ EVENTS (like the foundation read), right after you load your menu (or your first form if you don't have a menu). And you have to issue a CLEAR EVENTS where ever your quit the application (Just before issuing your quit. So your main program might look like this;
Code:
ON SHUTDOWN do myShutDown

DO FORM myMainform.scx && Or do myMainmenu.mnx 
READ EVENTS

PROCEDURE myShutDown
  CLOSE ALL
  CLEAR EVENTS
  QUIT
ENDPROC

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top