Solved

Compiler  ignoring errors

Posted on 2002-05-02
2
245 Views
Last Modified: 2010-04-04
I am writing an application in Delphi 5, with a main form calling about 6 child forms. I am in the middle of converting any labels,captions,text messages etc to read the captions in from a text file. This will allow easier language conversion. I have converted all the child forms and am working on the main form. I have written a procedure (procedure mainform.findcaption(i:integer; var txt:string) so i can supply the index of the text file(i) and the procedure returns the string(txt). however every time i compile the project, it ignores the new procedure. I can also create a procedure without declaring it or even rename a current procedure and the compiler reports everything is ok and the program runs ignoring and changes i have made. How can i get the compiler to see the errors?
0
Comment
Question by:alshepstone
2 Comments
 
LVL 7

Expert Comment

by:God_Ares
ID: 6986126
and if you put the cursor somwere random and type in 'asdfasdfgsfkgask3274627834678' it's all ok?

if yes then you are not compiling the unit your working on, try finding the right unit you ware working on, open it with the ctrl+click at the uses clausule.
0
 

Accepted Solution

by:
neld earned 50 total points
ID: 7018121
you probably have an old dcu laying around somewhere which the compiler finds before it finds the new dcu..  Your main form is probably compiling its dcu to some arb folder, and in your current folder you have an old dcu..

what i generally do for each project is create a seperate dcu and dcp folder and then i sent the dcu and dcp out directories to them (..\Dcu or ..\Dcp).

quick fix ! find all dcus via windows search, delete them all and do a build all

derrick
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now