Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21183

How to catch a oracle output value in VB

$
0
0
I'm new to VB and I was wondering how to catch an output value from an oracle command.

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..

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?

Viewing all articles
Browse latest Browse all 21183

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>