Anyone else seen this. In D4 we could clear these up with a build in most
cases but that doesn't do it now.
Thanks
Rich
This is normally caused by looking at the wrong unit in the IDE.
Have you more then one .pas file with the same name?
Finn Tolderlund
program Adjustlf;
uses
WinProcs, Classes, WinTypes, SysUtils;
var SRec : TSearchRec;
procedure ProcessFile(const FName:string);
var BakFile:string;
SL : TStringlist;
begin
BakFile := ChangeFileExt(FName,'.BAK');
if FileExists(BakFile) then
if not DeleteFile(BakFile) then Exit;
SL := TStringlist.Create;
SL.LoadFromFile(FName);
RenameFile(FName,BakFile);
SL.SaveToFile(FName);
SL.Free;
end;
procedure ProcessInput;
var A,B : integer;
Path : string;
begin
for A := 1 to ParamCount do begin
Path := ParamStr(A);
B := FindFirst(Path,faArchive,SRec);
Path := ExtractFilePath(Path);
while B = 0 do begin
ProcessFile(Path+SRec.Name);
B := FindNext(SRec);
end;
FindClose(SRec);
end;
end;
begin
ProcessInput;
end.
--
----------------------
Regards
Robert Cerny
Remove both qwe when replying
email: robert.q...@neosys.xrs.qwe.si
No questions via email, unless explicitly invited.
Schmitt ProfiTools wrote in message <398c6606$1_1@dnews>...
>Hi,
>Using D5.0 SP1 on W2K or NT4(SP6) we are seeing obvious mismatches between
>the code being executed and the code displayed as we step through programs.
"John Reeve" <JRe...@ar5.ndirect.co.uk> wrote in message
news:8mrvk9$3o...@bornews.borland.com...
I happened to have been porting some C code read in from my Linux box
that very day, and had all sorts of weird results on pressing Altp-s
syntax check and running the formatter (which I use all the time)
fixed it.
Interesting to note that Delphi correctly syntax highlights C code.
Pity Ctrl-F9 doesn't work also <g>