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!

"Form XXX - Undefined" error when running Rebuild Project

Status
Not open for further replies.

IlyaRabyy

Programmer
Nov 9, 2010
571
US
Colleagues,

I haven't seen this error for a long, long time:
When I run the "Rebuild Project" (off the Project Manager dialog) it throws the following error message:

"Visual Class Library d:\ilyaprog\MyProject\classes\MyClassLib.vcx has the following errors:
Form WARNING - Undefined"

after which this form - Warning - appears doubled in the Project Manager's list! If I run the Rebuild again - same error and this form is now tripled - and so on.
The path to the directory with all them forms is set, the Warning.SCX/SCT files are there alright - and still the builder cant find it or something, I dunno...

I remember seeing this behavior in some very far past (still in my VFP3 days) - and can't recall how to fix it.

There's one option I recon: erase the projects' PJX and PJT files, create brand new project and add the same modules into it... But I would rather avoid or keep as the very last resort.

Could anybody remind this old one how it can be done, without ditching the PJX/PJT files and composing the project from scratch?

AHWBGA!

Regards,

Ilya
 
Awh, schhheise! It was my own typo, bleen!
It was
Code:
DO FORM "Warning .SCX
instead of
Code:
DO FORM "Warning.SCX
in one of the methods... I'm ashamed! [blush]

My apologies for taking your time, colleagues, and waste it on such a trivial programming error!

Thank you all, the issue's been resolved.



Regards,

Ilya
 
No need to apologise, Ilya. On the contrary, other people might see the same problem. Your post could help them solve it.

I don't ever remember seeing this particular message, but I can easily imagine adding a spurious space or two in a filename and not noticing it.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips, training, consultancy
 
Paraphrasing Long John Silver, "My own Mother (rest she in peace) couldn't have consoled me better!"

Thank you, Sir!

(And I'm still feel ashamed of myself: how could I, so seasoned a programmer - 25+ years of S/W development under the belt - make such a stupid mistake and (more stupid, even) not to realize to look for the possible typo myself!)

Regards,

Ilya
 
Back in the FPD era, those error messages were a lot more helpful because you could *see* the extra space in the error message. Since the move to proportional fonts, the error messages are much less helpful because the extra spaces get condensed.

This is a really easy mistake to make, and darned difficult to find!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top