wwCollection Classes

Web Connection and the Client Tools includes a set of Collection classes that are implemented via arrays. Unlike the limited FoxPro Collection class, these classes provide a richer interface and more consistent operation that you would expect from collection classes.

The only downside to these classes is that you can't use FOREACH to walk through the items - you need to use the Item() method and indexers to step through the classes. The Web Control Framework relies heavily on these classes. The following collection/list classes are available:

ClassDescription
  wwJsonService This class allows calling a method and returning JSON data from the result either using the client wwMethodCallback class which uses POST parameters, or by passing a single JSON parameter from the client with content-type of application/x-javascript.
  wwCollection The base wwCollection class allows adding items as single items. The collection is purely accessed by a numeric indexer.
  wwNameValueCollection A special collection that allows key and value pairs to be stored and retrieved by the key name or index.
  wwStack A stack provides a Last In First Out list. It's based on an array of



  Last Updated: 4/30/2008 | © West Wind Technologies, 2008