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.

ArraysThe following statement puts the value of the third row of a single-columnarray of IntegerObjects into an integer variable named intvar:intvar = intarray[3].intcol.Value;To create a single-column array that contains varchars, point to theStringObject system class.For more information about the Value attribute of these object types, see theLanguage Reference <strong>Guide</strong> online help.How You Can Manipulate ArraysAn application can perform the following array operations:• Add rows• Change the values in all or some of the rows• Delete all or some of the rows in an arrayYou can choose from a variety of ways to accomplish these tasks:• For a discussion of adding rows, see How You Can Add Rows to an Array(see page 216).• For a discussion of changing rows, see How You Can Change Values in anArray (see page 219).• For more information about deleting rows, see How You Can Delete Rowsin an Array (see page 221).There are several methods of the ArrayObject class that manipulate arrays(such as inserting, removing, or sorting rows) or provide information (such asthe number of rows in the array). For a detailed description of these methods,see How You Can Retrieve Array Information (see page 221), or see theArrayObject section of the Language Reference <strong>Guide</strong> online help.How You Can Use the _RowState AttributeTo determine changes made directly to an array by a user editing a table field,you can use the _RowState attribute for each row in an array. This attributecontains information about the state of each row, indicating the last actionperformed on the row by the user or by the SetRowDeleted method. Changesmade to an existing row by a 4GL script (except any changes resulting fromthe execution of the SetRowDeleted method) do not affect this attribute.212 <strong>Programming</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!