Hello all,
I try to call an Oracle Stored Procedure through ODBC without succes. Does anyone know how to do this?
The connection handle is stored in thisform.nConnection.
Running the code will result in errorcode -1.
This is a piece of my code where TFX_PC_COMMSDK is an Oracle package, P_COMMSDK_EVENT is an Oracle Stored Procedure, P1 .. P7 are IN parameters and the last 3 are OUT parameters. All Oracle parameters have the type NUMBER or VARCHAR2.
lcBuffer = ''
lcOK = ''
lcError = ''
lcSP = "TFX_PC_COMMSDK.P_COMMSDK_EVENT(?p1,?p2,?p3,?p4,?p5,?p6,?p7,?lcBuffer,?lcOK,?lcError)"
lnResult = SQLEXEC(thisform.nConnection,lcSP)
DO CASE
CASE lnResult>0
IF lcOK='J'
WAIT WINDOW 'Succesfull'
ELSE
WAIT WINDOW 'Parse error'
ENDIF
CASE lnResult<0
=f_msg_info('Error='+f_str(lnResult))
ENDCASE
Thanks in advance for any reply,
André
I try to call an Oracle Stored Procedure through ODBC without succes. Does anyone know how to do this?
The connection handle is stored in thisform.nConnection.
Running the code will result in errorcode -1.
This is a piece of my code where TFX_PC_COMMSDK is an Oracle package, P_COMMSDK_EVENT is an Oracle Stored Procedure, P1 .. P7 are IN parameters and the last 3 are OUT parameters. All Oracle parameters have the type NUMBER or VARCHAR2.
lcBuffer = ''
lcOK = ''
lcError = ''
lcSP = "TFX_PC_COMMSDK.P_COMMSDK_EVENT(?p1,?p2,?p3,?p4,?p5,?p6,?p7,?lcBuffer,?lcOK,?lcError)"
lnResult = SQLEXEC(thisform.nConnection,lcSP)
DO CASE
CASE lnResult>0
IF lcOK='J'
WAIT WINDOW 'Succesfull'
ELSE
WAIT WINDOW 'Parse error'
ENDIF
CASE lnResult<0
=f_msg_info('Error='+f_str(lnResult))
ENDCASE
Thanks in advance for any reply,
André