[jawsscripts] Re: Resizing arrays

  • From: Jamal Mazrui <empower@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Thu, 5 Jan 2012 16:05:27 -0500 (EST)

Another approach is to use the ArrayList class of the .NET Framework, 
which a JAWS script can access via COM.  Almost any Windows computer these 
days has at least .NET 2.0, which includes this class.  The progID to pass 
to the CreateObject function is "System.Collections.ArrayList."  The 
methods and properties of the object thus instantiated are documented at

http://msdn.microsoft.com/en-us/library/system.collections.arraylist.aspx

This approach has the advantage of working with any JAWS version.

Similarly, for dictionary as opposed to list collections, it may be worth 
considering use of the Scripting.Dictionary class of the Windows Script 
Host, available on any Windows computer.  The progID is 
"Scripting.Dictionary."  Such an object is documented at

http://msdn.microsoft.com/en-us/library/x4k5wbx4(VS.85).aspx

A couple more useful web pages on this topic are as follows:

http://www.robvanderwoude.com/vbstech_data_arraylist.php

http://halfloaded.com/blog/net-classes-within-vbscript-doing-randomness-and-arrays-the-easy-way/

Jamal

__________�

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

Other related posts: