Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Call 2 = methods and get an error
Message
De
19/10/2002 11:37:09
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
À
19/10/2002 10:17:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00713177
Message ID:
00713190
Vues:
27
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform