Getcolumncount, Getcolumncount 17 – Kofax DM API User Manual

Page 196

Advertising
background image

176 C

HAPTER

4

GetColumnCount

GetColumnCount

The GetColumnCount method retrieves the number of SQL columns
in a result set. It references the current result set within the

PCDSQL

object.

Syntax

PCDSQL.GetColumnCount()

Returns

The GetColumnCount method returns a long integer that shows the
number of columns in the current result set. If an

INSERT

or

UPDATE

SQL command is run, then GetColumnCount returns the number of
columns in the insert or update call.

Example

The example in the discussion of the

PCDSQL

object in Chapter 3

illustrates the use of GetColumnCount.

Related Items

See the

PCDSQL

object.

See the following properties:

ErrDescription
ErrNumber

Advertising