|
||||||||||
|
||||||||||
Related Syntax | Other Library Functions |
function | SQLSetArraySize |
Library: omodbc - low-level ODBC support
Include: omodbc.xin |
define external function SQLSetArraySize ( read-only SQL_array_type Array, value integer ElementLen, value integer ElementCount )
Allows you to specify the number of elements, and the size of each element, in the SQL_array_type opaque data type variable. The existing data buffer (if any) is freed.
Input arguments:
The following code demonstrates how to initialize and set SQL array type variables:
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"
---- |