[Solved]TNotebook.Page[I].ComponentCount doesn return correct value lazarus / 31-LCL ---------------------------------------------------------------------- BlueIcaro · 2011-11-01 20:47 Hello I have a TNotebook component with a pages. In this pages I have some components, but when I ask for the numbers of components in a page, always I get 0. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i N := MyNotebook.Pages[0].ComponentCount;  I use Lazaruz 0.9.31 FPC: 2.5.1 Any Idea? /BlueIcaro ---------------------------------------------------------------------- BlueIcaro · 2011-11-06 12:05 ---------------------------------------------------------------------- User137 · 2011-11-06 12:54 Page[0], not Pages[0]  Either way it results 0 if i add a TButton on it, so i guess it's a bug? You could report in Bugtracker. ---------------------------------------------------------------------- Martin_fr · 2011-11-06 13:16 ComponentCount goes by Owner. all components are owned by the Form (or frame). So I think this is correct. Try ControlCount ---------------------------------------------------------------------- BlueIcaro · 2011-11-12 09:55 Quote from: Martin_fr on November 06, 2011, 02:16:53 pmComponentCount goes by Owner. all components are owned by the Form (or frame). So I think this is correct. Try ControlCount Hello, ControlCount works fine!  /BlueIcaro P.D. I'm sorry for delay in post. I was very very very busy.