[jawsscripts] Re: UIA Element Array Size

  • From: Bob _ <temp@xxxxxxxxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Tue, 20 Dec 2016 17:03:23 +0000

Thanks
I had tried .length
Using 17 here. 

I'll give it a go tomorrow. 


On 20 Dec 2016, at 16:33, Doug Lee <doug.lee@xxxxxxxxxxxxxxxx> wrote:


The array object has a .count property for this starting in JAWS 15. In JAWS 
14 it's a .length property, but
in JAWS 14 you also have to call .getElement() to get elements instead of 
using a For loop.

On Tue, Dec 20, 2016 at 04:30:19PM +0000, Bob _ wrote:
Hi All


Does anyone know if its possible to tell the size of a FSUIAElementArray 
without looping through and counting?



My Code:

Condition = 
UIA.CreateBoolPropertyCondition(UIA_SelectionItemIsSelectedPropertyId, 
UIATrue)

Search = TreeElement.FindAll(Treescope_Children, Condition)

Id like to know how many elements are inside the Search Object before 
processing them.
Search always exists even when empty.



Thanks



Bob








__________???

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

-- 
Doug Lee, Senior Accessibility Programmer
SSB BART Group - Accessibility-on-Demand
mailto:Doug.Lee@xxxxxxxxxxxxxxxx  http://www.ssbbartgroup.com
"While they were saying among themselves it cannot be done,
it was done." --Helen Keller
__________�

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

__________�

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: