ObjectCount
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
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
This discussion has been closed.
Comments
I'm a bit unclear about the problem. If you are moving objects out of the
DetailBand, wouldn't you expect the ObjectCount to decrease? Please clarify
the issue.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com