How many pageBreaks in memo ?
Posted: Sat Apr 18, 2015 2:31 pm
Hello,
I want to know how much/many PageBreaks in TDBRichViewEdit (memo).
The following procedure always shows j = 0.
What's wrong ? ... =rvsBreak ?
procedure TForm1.btnTest1Click(Sender: TObject);
var i,j: integer;
begin
j:= 0;
for i := 0 to Memo.ItemCount-1 do
if Memo.GetItemStyle(i)=rvsBreak then inc(j);
ShowMessage('Es liegen '+intToStr(j)+' Seitenumbrüche vor');
end;
I want to know how much/many PageBreaks in TDBRichViewEdit (memo).
The following procedure always shows j = 0.
What's wrong ? ... =rvsBreak ?
procedure TForm1.btnTest1Click(Sender: TObject);
var i,j: integer;
begin
j:= 0;
for i := 0 to Memo.ItemCount-1 do
if Memo.GetItemStyle(i)=rvsBreak then inc(j);
ShowMessage('Es liegen '+intToStr(j)+' Seitenumbrüche vor');
end;