Menu

Row Count From TableView

Gordon
2014-01-17
2014-01-17
  • Gordon

    Gordon - 2014-01-17

    For the life of me, I cant figure out how to get how many table items I have..

    Count:=ATableView.Sections[0].Count etc??

    Can you help?

     
  • Babak Yaghoobi

    Babak Yaghoobi - 2014-01-17

    Hi Gordon

      TotalCount := 0
      for I := 0 to ATableView.Sections.Count - 1 do
        TotalCount := TotalCount + ATableView.Sections[0].TableItems.Count ;
    

    Regards

     
  • Gordon

    Gordon - 2014-01-17

    hmm, I tried that before, didnt work.. I'll try it again. maybe a typo on my part.

     
  • Babak Yaghoobi

    Babak Yaghoobi - 2014-01-17

    Hi Gordon

    The correct code is:

      TotalCount   := 0;
      for I        := 0 to ATableView.Sections.Count - 1 do
        TotalCount := TotalCount + ATableView.Sections[i].TableItems.Count;
    

    Regards

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.