unable to invoke code completion due to errors in source code delphi problem [solved]

Delphi'de kod yazma ile ilgili sorularınızı bu foruma yazabilirsiniz.
Cevapla
fatihbarut
Üye
Mesajlar: 366
Kayıt: 15 Ara 2011 08:02

unable to invoke code completion due to errors in source code delphi problem [solved]

Mesaj gönderen fatihbarut » 16 May 2017 10:38

Hi all,
if Delphi compiles your project, but still while you want to use code completion it gives you the error message "unable to invoke code completion due to errors in source code" it is probably because of integrated ole object codes which has ".end " in it (like Excell or word or something, look at the end of message for example)

How to solve it?

go to start of your code block (start of .pas file)

go down and in every 5-10 (or more) code lines check whether code completion works or not

go down until you find where the problem starts

cut the code and past to the end of your code block

(great solution? no, but saves the day)

take care


example code which causes problem

function Tform1.GetLastLine(AColumn: Integer): Integer;
const
xlUp = 3;
begin
Result := GIS_il_ilce_excel.Range[Char(96 + AColumn) + IntToStr(65536)].end[xlUp].Rows.Row;
end;

Cevapla