TMyObject = class(TObject)
procedure DoA; virtual;
procedure DoB; virtual;
end;
TMyObject2 = class(TMyObject)
procedure DoA; override;
procedure DoB; override;
end;
...
TMyObject.DoA;
begin
DoB;
end;
TMyObject.DoB;
begin
WrtieLn('MyObject');
end;
TMyObject2.DoA;
begin
inherited DoA; // fix
end;
TMyObject2.DoB;
begin
WriteLn('MyObject2');
end;
for Index := Low(Key) to Hi(Key) do
Key[Index] := 0;
for i:=1 to Nk*4 do
key[i]:=Ord(s[i]);
MC := MainClass.Create;
TMainClass = class(TObject)
...
destructor Destroy; override;
end;
...
destructor TMainClass.Destroy;
begin
MyStrings.Free;
end;
for Index := 0 to Memo1.Count - 1 do
begin
S := Memo1.Lines[Index];
for Index2 := Lenght(S) downto 1 do
if {} S[Index2] = ' ' then
break;
for Index3 := Lenght(s) downto 1 do
if S[Index] <> '|' then Break;
S := Copy(S, Index2, Index3 - Index2);
if S <> '' then
Memo2.Add(S);
end;
List1.Sorted := True;
List2.Sorted := True;
Index1 := 0;
Index2 := 0;
while (Index1 < List1.Count - 1) and (Index2 < List1.Count - 1) do
begin
Cmp := CompareStrings(List1[Index1],
List2[Index2]);
if Cmp = 0 then Inc(Index1);
if Cmp > 0 then Inc(Index2);
if Cmp < 0 then
begin
List3.Add(List1[Index1]);
Inc(Index1);
end;
end;
for i:=1 to StringGrid1.RowCount - 1 do
В notepad++ есть режим выделения "блоком". Работает при выделение мышкой с зажатым Alt.