Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: surinder singh
  Where is surinder singh?
 Hyderabad/New Delhi/Kangra
 India
 surinder singh
 To: Malik Aqeel
  Where is Malik Aqeel?
 Faisalabad
 Pakistan
 Malik Aqeel
 Tags
Subject: RE: function to call in oracle 10g express
Thread ID: 216440 Message ID: 216446 # Views: 32 # Ratings: 0
Version: Visual FoxPro 9 Category: ODBC, ADO and OLEDB
Date: Friday, February 13, 2009 9:28:09 AM         
   


> Dear Exprets,
>
> I am trying to convert my account software from vfp/sql server 2000 to
> vfp/Oracle 10g express edition.
>
> I have created database on backend (oracle 10g express) and successfully
> connected to it. I sucessfully call the procedure from front end VFP 9.
>
> same way I created a function on oracle 10g express but unable to successfully
> call it from front end VFP 9. I am using the same as I use to call store Procedure.
>
> I have created following fuciton and connect through ODBC.
>
> create or replace function get_maincode(ac IN Varchar2,mt IN OUT Varchar2)
> return Varchar2 is
> begin
> select main_title into mt from chart
> where acc_code=ac;
> return mt;
> end;
>
> I call this function from vfp as below.
> sqlexec=consql,"(call get_maincode (?ac,?@mt)}"
>
> if I create procedure than it run successfully but not as function.
>
> function created successfully on oracle end.
>
> any tip??
>
> Regards,
> Abdul Aqeel
does it work in this way:
=sqlexec(consql,"select get_maincode(?ac,?@mt)","crsResult")

-----------------------------------------------------------------------------------------------
Regards
Surinder Singh
Email: sur200@indiatimes.com
Check my blog for details: http://weblogs.foxite.com/sur200
----------------------------------------------------------------------------------------
*Everything is possible but everything is not required to be happy..



COMPLETE THREAD
function to call in oracle 10g express Posted by Malik Aqeel @ 2/13/2009 8:40:34 AM
RE: function to call in oracle 10g express Posted by surinder singh @ 2/13/2009 9:28:09 AM
RE: function to call in oracle 10g express Posted by Martina Jindrová @ 2/13/2009 10:47:00 AM
RE: function to call in oracle 10g express Posted by Cetin Basoz @ 2/13/2009 11:34:42 AM
RE: function to call in oracle 10g express Posted by Malik Aqeel @ 2/13/2009 12:04:01 PM
RE: function to call in oracle 10g express Posted by Cetin Basoz @ 2/13/2009 12:58:59 PM