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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VFP7 Compile Error

Status
Not open for further replies.

thawatwong

Instructor
Aug 25, 2002
38
HK
Hi,There
I've created a project using wizard,then I move myproject to other folder,when I build EXE file I've got an error message
"Error in line 219 of _tablemover.usetable (record 19): Syntax error."(I set a new main program myselft not used a wizard mainprogram).Have any way to avoid this problem?

Thank you for all advance
 
And you are sure that line 291 of etc. etc. does not have a syntax error.
 
In a Project file (just another VFP table) all the included files are refered to as relative to the directory where the project is. So when you move the project, you must have ALL the files in the same relative locations.

Since _tablemover is a class in the _mover.vcx in the ..\Visual FoxPro Catalog\Foundation Classes\User Controls\ catalog (one of the Foundation classes), if you didn't move this directory also, your project won't find it.

You can try a couple of things:
1) Remove this class from the project, and then re-add it where it really is.
2) Sometimes just trying to Modify this class will cause the project manager to ask you where it really is, and you can re-locate it.
3) You can go to my user group site and get a couple programs I wrote to extract the project info into a couple .TXT files. Next you can edit these in NotePad (or VFP <g>), and use a second program to recreate the project in the new location. Because this uses the Project Object, it only works in VFP 6.0 and up. ( - See the internal ProjectUtilities.txt for more detailed instructions.)

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top