I'm new to VB and I was wondering how to catch an output value from an oracle command.
I got this code:
but I don't get any return value for my paramRet. What am I missing?
Noticed that I've no reference to my query "sql" in CreateParameter is my observation correct?
I got this code:
Code:
Dim paramRet
Dim output
Sub function()
sql = "DECLARE
variable := VARCHAR(10);
variable := 'TEST';
BEGIN
:=output := variable;
END; "
Connect2Oracle
ExecuteSQLStatement sql
Set paramRet = adoCmd.CreateParameter("output",202,2,"20")
adoCmd.Parameters.Append paramRet
//print paramRet..
Noticed that I've no reference to my query "sql" in CreateParameter is my observation correct?