SQLSetVectorAsCounter
Full Description
swirl
Syntax
  define external function SQLSetVectorAsCounter
     (  read-only SQL_vector_type Vector,
        value counter CounterValue )


Purpose

Sets the data area of the SQL_vector_type variable to the specified counter value.

Input arguments:

  • Vector. The SQL_vector_type variable to modify.
  • CounterValue. The specified counter value.

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"

Copyright © OmniMark Technologies Corporation, 1988-1998.