[jawsscripts] Re: how to use StringArray

  • From: Andrew Hart <ahart@xxxxxxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Mon, 04 Feb 2013 10:56:06 +1000

CHECK OUT

http://www.freedomscientific.com/documentation/scripts/scripting-info.asp

JAWS has had a For loop construct since JAWS 11 Update 1.  You could use 
it like this:

Var
   StringArray sNumbers,
   Int i
sNumbers = New StringArray[10]
for i = 1 To 10
   sNumbers[i] = IntToString(i)
EndFor

I don't recall at the moment if JAWS script arrays are zero-based or 
one-based, so the For loop and assignment in the code example above 
might be slightly incorrect, but you get the idea.  Unfortunately, FS 
neglect to mention this important bit of info on the page I referenced 
above.

Hth,
Andrew.

On 4/02/2013 8:20 AM, Alfredo Holguin wrote:
> can anyone help with an example of how to use StringArray.  I think I
> have the declaring StringArray down, however, I am used to being able
> to loop through the array with a for loop.  how would I be able to
> loop through the array with a for loop (or any other loop, although I
> prefer the for loop).  if someone can put up an example, from
> declaring the stringArray to looping and adding values to each array
> element, I would greatly appreciate it.
> sincerely,
> Holguin
> __________�
>
> View the list's information and change your settings at
> //www.freelists.org/list/jawsscripts
>
>
>


__________�

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

Other related posts: