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.

Arrays and Table Fields—Conceptual BackgroundA table field is the means by which an OpenROAD application displays an arrayto users. A table field is a composite field comprised of active fields arranged inrows and columns. Each column in the table field maps to one attribute of theclass associated with the array and each table field row displays one row of thearray. The fields are usually entry fields, but can be of any kind, such as imageor toggle fields. A table field can have columns for all or some of the class'sattributes; however, it cannot have columns that are not array attributes.By default, table fields appear on forms with table titles, column titles, controlbuttons, and scroll bars. For a detailed description of a table field, see TableFields (see page 227).In OpenROAD, you can use an array with or without an associated table field.A table field provides a convenient way to display the data in an array.Ways to Create an ArrayThere are several ways to create an array in OpenROAD:• When you create global array variablesYou create these variables using OpenROAD Workbench.• When you create local array variablesYou create these variables with a declaration statement in a frame or fieldscript.• When you create a table field in OpenROAD Workbench, an associatedarray variable is automatically created.This default array has the same name as the table field and its attributesare identical to the columns in the table field. You can specify additionalarray attributes by specifying an underlying user class.For more information about creating variables and table fields, see the User<strong>Guide</strong>.206 <strong>Programming</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!