OC Get function

4D - Documentation   Français   English   German   4D ODBC, Command Theme List   4D ODBC, Command Alphabetical List   Back   Previous   Next

version 1.5


OC Get function (login_ID; function_ID; 4DObject) Integer

ParameterTypeDescription
login_IDLongintLogin ID
function_IDIntegerReference number for function
4DObjectStringName of the function if it is supported
Function resultInteger1 = The function is implemented, or
-1 = The function is not implemented

Description

The OC Get function routine allows you to determine which specific ODBC functions a driver supports.

login_ID must be a valid login ID.

function_ID is the reference number of the ODBC function. A list of reference numbers follows the description of this routine.

4DObject is the name of a 4th Dimension variable or field that will accept the name of the function if it is supported.

OC Get function returns 1 if the function is implemented and -1 if the function is not implemented.

The reference numbers for functionID are as follows:

ODBC Functions at Each Level ID Implemented in 4D ODBC

Core Level

SQL_API_SQLALLOCCONNECT1Yes
SQL_API_SQLALLOCENV2Yes
SQL_API_SQLALLOCSTMT3Yes
SQL_API_SQLBINDCOL 4Yes
SQL_API_SQLCANCEL 5Yes
SQL_API_SQLCOLATTRIBUTES 6Yes
SQL_API_SQLCONNECT7Yes
SQL_API_SQLDESCRIBECOL 8Yes
SQL_API_SQLDISCONNECT9Yes
SQL_API_SQLERROR10Yes
SQL_API_SQLEXECDIRECT11Yes
SQL_API_SQLEXECUTE12Yes
SQL_API_SQLFETCH13Yes
SQL_API_SQLFREECONNECT14Yes
SQL_API_SQLFREEENV15Yes
SQL_API_SQLFREESTMT16Yes
SQL_API_SQLGETCURSORNAME17Yes
SQL_API_SQLNUMRESULTCOLS18Yes
SQL_API_SQLPREPARE19Yes
SQL_API_SQLROWCOUNT20Yes
SQL_API_SQLSETCURSORNAME21Yes
SQL_API_SQLSETPARAM22Yes
SQL_API_SQLTRANSACT23Yes

Level 1

SQL_API_SQLCOLUMNS40Yes
SQL_API_SQLDRIVERCONNECT41
SQL_API_SQLGETCONNECTOPTION42Yes
SQL_API_SQLGETDATA43Yes
SQL_API_SQLGETFUNCTIONS44Yes
SQL_API_SQLGETINFO45Yes
SQL_API_SQLGETSTMTOPTION46Yes
SQL_API_SQLGETTYPEINFO47Yes
SQL_API_SQLPARAMDATA48
SQL_API_SQLPUTDATA49
SQL_API_SQLSETCONNECTOPTION50Yes
SQL_API_SQLSETSTMTOPTION51Yes
SQL_API_SQLSPECIALCOLUMNS52
SQL_API_SQLSTATISTICS53
SQL_API_SQLTABLES54Yes

Level 2

SQL_API_SQLBROWSECONNECT55
SQL_API_SQLCOLUMNPRIVILEGES 56Yes
SQL_API_SQLDATASOURCES57Yes
SQL_API_SQLDESCRIBEPARAM58Yes
SQL_API_SQLEXTENDEDFETCH59
SQL_API_SQLFOREIGNKEYS60
SQL_API_SQLMORERESULTS61Yes
SQL_API_SQLNATIVESQL62
SQL_API_SQLNUMPARAMS63Yes
SQL_API_SQLPARAMOPTIONS64
SQL_API_SQLPRIMARYKEYS65Yes
SQL_API_SQLPROCEDURECOLUMNS66Yes
SQL_API_SQLPROCEDURES67Yes
SQL_API_SQLSETPOS68
SQL_API_SQLSETSCROLLOPTIONS69
SQL_API_SQLTABLEPRIVILEGES70Yes

SDK 2.0 Additions

SQL_API_SQLDRIVERS71
SQL_API_SQLBINDPARAMETER72

Example

The following method queries the user for a function ID number and returns the name of the function if it is implemented.

   C_STRING(30;var1)
   $num:=Request("Enter ID #")
   $res:=OC Get function (login;Num($num);var1)
   If ($res=1)
      ALERT(var1+" is Implemented")
   Else
      ALERT ("Not Implemented")
   End if

4D - Documentation   Français   English   German   4D ODBC, Command Theme List   4D ODBC, Command Alphabetical List   Back   Previous   Next