Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10548

Re: How to Count the Rows of a GUI Label Object

$
0
0

Sayuti,

 

Your solution is brilliant!  I'll actually have to do the same for some other lbl scenarios as they too do not have the total count in the caption.  So in essence, what you did was:

 

  1. determined the last visible lbl row in the intitial view by extracting the last two digits from the .ID property using the Right() formula
  2. then you looped through all of those to extract their values
  3. Then you determined the maximum row count using the .Maximum property
  4. then you starting looping through the remaining rows but setting the scroll position to i as the loop progressed so you were always reading the last row in the view.

 

How did you ever learn about the .ID  and .Maximum properties?


Viewing all articles
Browse latest Browse all 10548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>