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 Access a Database with DataStream ObjectsHow You Can Run the SQLSelect QueryTo execute the query after specifying it, invoke the Open method. If you openthe SQLSelect object in QY_ARRAY mode, each column's value goes directly tothe Expression attribute of the SQLSelect object's target array. If you mappedthe Expression attribute for each column to a specific field on the form, eachcolumn's value is displayed on the form.If, however, you open the SQLSelect object in any mode but array mode, thefollowing additional methods are required to display the data:NextRowLoadRetrieves the data row by row from the database into internal buffersMoves data from the internal buffers into the target fields on the formOpening an SQLSelect object requires setting several parameters in addition tospecifying the query mode. The Open method has the following parameters:QueryModeData Type: integer(Required.) Specifies one of the following modes:• QY_ARRAY• QY_CACHE• QY_CURSOR• QY_DIRECTDefault: NoneCheckColsData Type: integer(Optional.) Checks the number of columns specified in the Query text withthe number of columns in the Columns array. When FALSE, populatescolumns in the Columns array if they have not been explicitly set.Default: FALSEIsRepeatedData Type: integer(Optional.) Specifies whether to make a repeat query. Set to TRUE tomake a repeat query.Default: FALSE170 <strong>Programming</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!