Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

ObjectCount

edited September 2005 in General
Oh Boys, who have written the ObjectCount-Procedure
Trying following Code

lBand := ppDetailBand1;

for liIndex := 0 to lBand.ObjectCount-1
do begin
lObject := TppComponent(lBand.Objects[liIndex]);
lObject.Band := lPageStyle; -> the lBand.ObjectCount decrease
!!!!!!!!!!!!!!!!!!!!!!!!!
end;

I have Controls in ppDetailBand1.
The Loop above moves all COntrols from DetailBand to Pagestyle-Band.
and within the loop the lBand.ObjectCount decrease !!!!!!!

Andy

Comments

This discussion has been closed.