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

Class Name is Invalid

Status
Not open for further replies.

tkee

Programmer
Feb 6, 2004
55
US
I have a project set up. When I run the project it works fine. I have no problem building the exe, but when trying to run the exe I get the message "Class name is invalid" and it won't run. I have removed all the forms, the menu and the reports and commented out everything in the program file except a message on the screen, so I'm thinking it has to be in the class itself, but I created a completely new class and project and still got the message. I even put everything in a new, clean directory. I thought I had all the hard work done. As far as I know nothing has changed on my setup. I just rebuilt another department's exe on the same server with no problems at all. Is there anything else I can look for? It's very frustrating, especially since even if I started from scratch and redid a month's work I'm not sure it would work.
 
Check, if no class library of your project is excluded from compilation.

Error handling would also help locating the error. If you know the line number of the mehtod/event/program and the file (vcx,scx,prg) it's easy to see what class name causes that error. VFP help says this can occur both for wrong names (eg starting with a digit), or missing classes. I assume the latter case, which can easily lead to a project working in the IDE, where all classes are available in their VCX files, but not in the EXE, as used libararies are excluded.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top