![]() ![]() ![]() ![]() ![]() ![]() ![]() |
|||||
|
|
|||||
| function | SQLSetVectorAsCounter | ||||
| Sample Code | Related Syntax | Other Library Functions |
|
Library: ODBC
Include: omodbc.xin |
define external function SQLSetVectorAsCounter
( read-only SQL_vector_type Vector,
value counter CounterValue )
Sets the data area of the SQL_vector_type variable to the specified counter value.
Input arguments:
The following code demonstrates how to use SQLSetVectorAsCounter to sett the SQL vector stream value.
local SQL_Vector_type Vector local counter VectorCounterValue SQLSetVectorSize( Vector, 4 ) set VectorCounterValue to SQLGetVectorAsCounter( Vector ) output "Initial counter value = %d(VectorCounterValue)%n" SQLSetVectorAsCounter( Vector, 1997 ) set VectorCounterValue to SQLGetVectorAsCounter( Vector ) output "Current counter value = %d(VectorCounterValue)%n"
| ---- |