mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 09:35:59 +02:00
codetools: fixed example
git-svn-id: trunk@56264 -
This commit is contained in:
parent
727f6ba694
commit
070589661a
@ -39,7 +39,7 @@ var
|
||||
Code: TCodeBuffer;
|
||||
X: Integer;
|
||||
Y: Integer;
|
||||
TopLine: Integer;
|
||||
TopLine, BlockTopLine, BlockBottomLine: Integer;
|
||||
Filename: String;
|
||||
begin
|
||||
if (ParamCount>=1) and (Paramcount<>3) then begin
|
||||
@ -70,7 +70,8 @@ begin
|
||||
raise Exception.Create('loading failed '+Filename);
|
||||
|
||||
// complete code
|
||||
if CodeToolBoss.CompleteCode(Code,X,Y,TopLine,NewCode,NewX,NewY,NewTopLine,false)
|
||||
if CodeToolBoss.CompleteCode(Code,X,Y,TopLine,NewCode,NewX,NewY,NewTopLine,
|
||||
BlockTopLine,BlockBottomLine,false)
|
||||
then begin
|
||||
writeln('Code completed: ',NewCode.Filename,' Line=',NewY,' Column=',NewX);
|
||||
writeln(Code.Source);
|
||||
|
Loading…
Reference in New Issue
Block a user