10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ArraysDeclaring an array variable does not place any actual rows into the array;instead, it:• Specifies the type of object that is to comprise the array• Initializes an object of type ArrayObject that contains a description of thearray and provides access to methods for manipulating the array (if it isnot declared with default null)For more information about these methods, see How You Can ManipulateArrays (see page 212).How You Can Reference an ArrayOpenROAD provides syntax for referencing each of the following arraycomponents:• An array as a single entity• Individual array rows• A member of a nested structure• Individual columnfields if the array is associated with a table field of thesame name• Individual data items in a rowThe syntax for each of these references is summarized in the following table:ArrayComponentArrayReference Syntax and ExamplearraynameExample:callproc update_db(vid_cust=custtable);Rowarrayname[n]Example:callproc update_acct(account =custtable[2]);Nested Object'sAttributearrayname[n].nestedobject.attributeExample:custtable[5].address.custcity = 'Daly City';Nested Array'sAttributearrayname[n].nestedarray[m].attributeExample:custtable[4].vid_rent[5].title = Kismet';210 <strong>Programming</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!