Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Call 2 = methods and get an error
Message
 
 
To
19/10/2002 10:17:10
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00713177
Message ID:
00713184
Views:
21
Hi Joro,

What OLE error (in hex) and message do you get?
BTW, You don't have to use macro substitution in this case.
oRecordSet.Open("SELECT * FROM " + lcTable,This.lcConnection)
>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
>
>Thanks in Advance
>
>João Batista
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform