Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Call 2 = methods and get an error
Message
From
19/10/2002 11:37:09
 
 
To
19/10/2002 10:17:10
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00713177
Message ID:
00713190
Views:
26
>Hi all
>
>I have one class and two equal methods and i get this error
> -#1426
> -.oConnect.Procura_Unica('Clientes')
>when i call the method procura_unica, the code is the same in the 2 methods,
>
>
>LPARAMETERS lcTable
>oRecordSet=CREATEOBJECT('adodb.recordset')
>oRecordSet.Open("SELECT * FROM &lcTable",This.lcConnection)
>RETURN oRecordSet
>
>
>code that call the two methods
>
>with This
>	lcChv = '-1'
>	llok=.oConnect.Conectar()
> 	if llok
> 	    ? 'OK - Connected'
>	 	.oConnect.Procura_cliente('Clientes') - OK
>	 	.oConnect.Procura_unica('Clientes') - Error Here
>	 else
>	 ? 'NOT Connected'
>	endif
>endwith
>
>But if i call only the second Procura_Unica i get the same error

So, it is really only Procura_unica() that is a problem, yes? I'd check the code carefully to see if the code really is the same. (If the two methods do have the same code, why not just have one method?) Then, if you're _sure_ the code is exactly the same, then check in the debugger, just before executing the Open(), your varable values.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform