|
||||||||||
|
||||||||||
Related Syntax | Other Library Functions |
function | SQLGetArrayElementCount |
Library: omodbc - low-level ODBC support
Include: omodbc.xin |
Return type: Integer Returns: The total number of elements. |
define external integer function SQLGetArrayElementCount ( read-only SQL_array_type Array )
Gets the total number of elements available in the specified SQL_array_type OMX.
Input argument:
In using this function in your code, you will use the following input arguments:
The following code demonstrates how to initialize and set an SQL array type OMX:
include "omodbc.xin" process local SQL_Array_type Array local integer ElementCount local integer ElementLen set ElementCount to SQLGetArrayElementCount( Array ) set ElementLen to SQLGetArrayElementLen( Array ) output "Initial array element count = %d(ElementCount)%n" output "Initial array element length = %d(ElementLen)%n" SQLSetArraySize( Array, 20, 5 ) set ElementCount to SQLGetArrayElementCount( Array ) set ElementLen to SQLGetArrayElementLen( Array ) output "Current array element count = %d(ElementCount)%n" output "Current array element length = %d(ElementLen)%n"
---- |