jbailey268
Programmer
Hope this is the right forum. I am using VFP 8.
It seems like all works well with calling a stored procedure in a DBC remotely from .NET. For this I am gratified.
The trouble starts when I start to get fancy or complex in my DBC stored procedure. I get errors (within .NET) when I put in my stored procedure a class like as follows-
Procedure getLicense
para t1,t2,t3
DEFINE CLASS license AS CUSTOM OLEPUBLIC
PROC PROC1
<code>
ENDPROC
PROC PROC1
<code>
ENDPROC
ENDDEFINE
Endproc && end of procedure getLicense
I even tried putting the entire DEFINE Class after the end of my last ENDPROC in my stored procedures. Didn't help.
It seems to work ok from the VFP command window. So the code part is sound.
Question: Is there something special one needs to do when the stored procedure is more complicated than plain vanilla code. I have a Createobject in there which calls a non-visual dll. Is this taboo?
Simpler versions of the programming code are called from within .NET and seem to pass params back and forth just fine, as long as there's no define class or create object. Is that the way it's gonna be?
Anyone have any experience with this? Thanks for any help.
It seems like all works well with calling a stored procedure in a DBC remotely from .NET. For this I am gratified.
The trouble starts when I start to get fancy or complex in my DBC stored procedure. I get errors (within .NET) when I put in my stored procedure a class like as follows-
Procedure getLicense
para t1,t2,t3
DEFINE CLASS license AS CUSTOM OLEPUBLIC
PROC PROC1
<code>
ENDPROC
PROC PROC1
<code>
ENDPROC
ENDDEFINE
Endproc && end of procedure getLicense
I even tried putting the entire DEFINE Class after the end of my last ENDPROC in my stored procedures. Didn't help.
It seems to work ok from the VFP command window. So the code part is sound.
Question: Is there something special one needs to do when the stored procedure is more complicated than plain vanilla code. I have a Createobject in there which calls a non-visual dll. Is this taboo?
Simpler versions of the programming code are called from within .NET and seem to pass params back and forth just fine, as long as there's no define class or create object. Is that the way it's gonna be?
Anyone have any experience with this? Thanks for any help.