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

Build Error

Status
Not open for further replies.

MaryG

Programmer
Mar 26, 2001
26
AU
Hi all,

I am building my FoxPro application and am getting an error that I can't figure out so sorry if this is a silly question. I am hoping someone else has come across the same thing.
When the classes are being built, I get an error dialog box saying the classname.vct is missing or invalid. The .vct file is in the same directory as the .vcx file for this class and the class is working properly where it is being used on the screens.
If I look in the error file, the error says
"lds Saves SET FIELDS (set internally)." and I am not sure what this means.

I have tried removing and re-adding the class, I have tried creating a new project and adding everything in again, but no luck. I am not sure why it is complaining about the .vct file.

Does anyone have any ideas please?
Thanks in advance
Mary
 
Mary,
First I'd try to just compile the class by itself:
COMPILE CLASSLIB classname.vcx
If you get the same error, you'll just have to do some "speluking" in the code.

Then, I'd assume you might be working with multiple "copies" of this class. I'd check to make sure you don't have another copy of this class somewhere in your VFP path. Do:
? SET("PATH")
to verify all the places it might be looking for this class if it isn't in your default directory.

Next, I'd check to make sure that the project is referring to the same class that you think yo are. Open the project, select the Classes tab, then select the class. Assuming you have the Display Description/Path turned on it should now show you where it's getting the class from.

Last, and this is the most work, open every form and class that may refer to this class and check to see if there are any that show a different path in the property sheet where it's used <s>.

Rick
 
Suggest when you build the EXE/APP, select regenerate all components. This could solve any missing segments and rebuild the VCT. At times, there could be a mistake that we used a future date by mistake (say using the year 2010 instead of 2001). The components get built with that date and any changes made do not get compiled again. So regerating all the codes helps to reset this. This will help recompiling the classes as well. Hope this solves your problem.

ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
LET KNOW IF THIS HELPED. ENOUGH EXPERTS ARE HERE TO HELP YOU OUT! BEST OF LUCK :)
 
Thanks Rick and Ramani but it is still now working. The class will not compile by itself, I have checked the paths etc and it is pointing to the correct directory. I have verified by going into the screens where the class is used and checking the path that it is pointing to the right directory. I even deleted the class from the form and dragged it in again from the project with no luck. I tried building with the regenerate all option but no luck.

I still don't understand why the buttons (class is buttons) work fine when I run the form from my main program, but why there is an error when I try and build the application.

Are there any other ideas?

Thanks
Mary
 
Thanks Rick and Ramani but it is still now working. The class will not compile by itself, I have checked the paths etc and it is pointing to the correct directory. I have verified by going into the screens where the class is used and checking the path that it is pointing to the right directory. I even deleted the class from the form and dragged it in again from the project with no luck. I tried building with the regenerate all option but no luck.

I still don't understand why the buttons (class is buttons) work fine when I run the form from my main program, but why there is an error when I try and build the application. The error still says:
Memo file
path\classname.vct is missing or invalid

Are there any other ideas?

Thanks
Mary
 
Mary,
Where did you get this class? Can you get another copy? Is there a Backup copy somewhere? Is it available for download from somewhere? Could you e-mail it to someone if an address was supplied? (Note: If it's dependent on other than the VFP base classes, can you send them too? i.e. They aren't part of a copyrighted framework.)

Rick
 
Hi Rick,
Sorry for the delay and thanks for your help. I had created the class based on one of the foxpro wizard classes. I wasn't using the class in too many places, so I ended up trying to recreate the class and re-including it. The application then built successfully. I don't know why it was complaining in the first instance as the new class was doing the exact same thing the other one was. But, at least it is working now.

Mary
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top