Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8372

Re: SQL Anywhere - How get OUT-parameters of stored functions in PB

$
0
0

Hello Tobias,

 

As your procedure doesn't return a row the Fetch is redundant. Try this......

 

Declare the procedure as a local external function on your transaction object....

 

subroutine test_proc(string instr, ref string outstr) RPCFUNC ALIAS for "~"admin~".~"test_proc~""

 

then call it with........

 

string ls_input, ls_output

 

ls_input = 'ABC'

ls_output = Space(32)

 

SQLCA.test_proc(ls_input, ls_output)

 

messagebox("ls_input",ls_input)

messagebox("ls_output",ls_output)

 

This does work. I don't think you can use output parameters with a result set, but as I said it's been a long time.

 

Paul


Viewing all articles
Browse latest Browse all 8372

Trending Articles



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