`
SQL Related Articles: Calling stored procedure with return parameter 2003-02-28 -- Lesley Dean Newsgroups: TopSpeed.Products.Drivers Hi Jim, Benjamin, I would just change Jim's example to NORESULTCALL if there is no result set being returned. And I would add a fileerror check. eg: retval long OptionalInParam string(20) code bind('retval',retval) bind('OptionalInParam', OptionalInParam) View{prop:sql}= '&RetVal = NORESULTCALL StoredProcName(&OptionalInParam[IN])' if errorcode() = 90 then stop('Error in StoredProcName: ' & fileerrorcode() & ' ' & fileerror()). message('RetVal='&retval) HTH. -- -------------------------- Lesley Dean CapeSoft www.capesoft.com "jim kane" Printed November 23, 2024, 6:56 am This article has been viewed/printed 35319 times. Google search has resulted in 102 hits on this article since January 25, 2004. |