Skip to Content
0
Feb 14, 2014 at 02:51 AM

How to Count the Rows of a GUI Label Object

2709 Views

Hi,

I was wondering if anyone has any experience working with the GUI Label Object. I'm able to navigate through it's rows by referring to the labels like this:

lblWBS = session.findById("wnd[1]/usr/lbl[1," & i & "]").Text

where i is a variable in a For Next loop. In the example code above where i = 1, lblWBS would render "WBS Element"; when i = 3 lblWBS renders "121476.01.01.01.013533A, etc. The narrow space between 1 and 3 is actually a label too so I assume it would be label 2. You can see the example below. I also attached the .png file just in case you can't read the image I inserted.

I need to be able to count the rows in this collection of lablel objects, or probably more accurately, count the labels in one colum. I'm able to do this easily in a ALV grid but not in the GUI Label Object container. Does anyone out there have any knowledge on this?

Attachments

GUI LBL.png (69.8 kB)
GUI LBL.png (69.8 kB)