PODSArray object

  • Inherits from: PODSObject

  • Accessed by: PODSAvantGo object's createStdArray( ); or passed to or from JavaScript

  • Available to: C, JavaScript

The attributes and methods in the PODSArray interface allow you to manipulate an array that either is to be exposed to JavaScript or has been received from JavaScript. For more information on exporting a POD to JavaScript, see Writing C Code for PODS and Using PODS functions from JavaScript engine.

When you pass a JavaScript array to a PODS method that takes a PODSArray type, the PODSArray object is a PODS object that wraps the JavaScript array. You have the option of modifying this returned JavaScript array, then returning back to JavaScript. Then the PODSArray object would be unwrapped, so that the (modified) JavaScript array would be available to JavaScript.

You create the array using the PODSAvantGo object's createStdArray( ).

After using createStdArray( ), you need to call the array setter to initialize the array. See Indexed properties.

Note

When a PODS array is passed to JavaScript, although it is technically a PODS object, it acts like an ordinary JavaScript array. Thus you can manipulate it in JavaScript just like you would if it were created in JavaScript.


Summary of PODSArray attributes and methods
getElement( )
length
setElement( )