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.

How You Can Build a Frame DynamicallyInitialize StatementThe example application uses the DynamicFrame frame's initialize statement toperform the following start-up tasks:• Declare necessary variables• Select and list the tables from which the user can choose• Initialize some variablesHow You Can Declare VariablesThe DynamicFrame frame declares the following local variables in its framescript's initialize block:initialize ( ) =declare/* Needed for loading the option list */i = integer not null; /* temp index *//* Needed in generation of frame */numcolumns = integer not null;/* number of columns in tab */widthchar = integer not null;/* width of one character */heightchar = integer not null;/* height of one character */fieldleft = integer not null;/* left edge of field*/trimleft = integer not null;/* left edge of trim */fieldtop = integer not null;/* top of next field */fieldheight = integer not null;/* height of a field */maxformheight = integer not null;/* maximum height of form */maxformwidth = integer not null;/* fixed width of form*/vertspace = integer not null;/* space between lines */trimspace = integer not null;/* space between trim/field */dbaname = varchar(32) not null;/* name of dba */398 <strong>Programming</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!