<<

Contents

Search

>>

 

JDBC_SET_CURSORTYPE

 

 

Function

 

 

Syntax:

JDBC_SET_CURSORTYPE(<File Number>,<Mode>)

 

<File Number>

= <NUM-EXPRESSION>

<Mode>

= <NUM-EXPRESSION>

 

 

Meaning:

Defines the cursor type.

 

JDBC_SET_CURSORTYPE returns the result 0 if no error occurred, otherwise –1. 

 

If an error occurs, the variable OK contains the error number and the function JDBC_GET_LAST_ERROR$ returns the error text.

 

Parameter:

File Number

Number of JDBC database

 

Mode

1: TYPE_FORWARD_ONLY

2: TYPE_SCROLL_INSENSITIVE
3: TYPE_SCROLL_SENSITIVE

4: TYPE_SCROLL_SENSITIVE

otherwise: TYPE_FORWARD_ONLY

 

Sample:

H% = JDBC_SET_CURSORTYPE(2,3)

IF H% = -1

THEN ERRORMES = JDBC_GET_LAST_ERROR$

ENDIF

 

See also:

JDBC_FETCH

JDBC_EXTFETCH