Error with mysql

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
Cartago
Posts: 13
Joined: Sun Dec 28, 2008 12:48 pm

Error with mysql

Post by Cartago »

Amigos:
Tengo un pequeño sistema que lee datos de una base mysql. No tengo problemas con la versión HMG 2.9.3 que es la que venía utilizando.
Ahora bien, cuando trato de utilizar la versión 3.0.0, me aparece el siguiente error:

Error BASE/3012 Error de argumento: ACTIVECONNECTION

Called from TOLEAUTO:ACTIVECONNECTION(0)
Called from CARGARARRAYS(224)
Called from CONECTA(164)
Called from (b)INGRESAR(51)
Called from _DOCONTROLEVENTPROCEDURE(4749)
Called from EVENTS(1761)
Called from _DOMESSAGELOOP(0)
Called from _ACTIVATEWINDOW(4413)
Called from INGRESAR(110)
Called from (b)MAIN(89)
Called from _PROCESSINITPROCEDURE(4588)
Called from _ACTIVATEWINDOW(4376)
Called from MAIN(173)

Este es el código del error:
oRs := CreateObject("ADODB.Recordset")
oRs:LockType := adLockOptimistic
oRs:CursorType := 3
oRs:Cursorlocation = adUseClient
oRs:ActiveConnection(oMiConexion) // <--Línea 224
oRs:Source := ("select * from alumno where estado = 1 and ciclo = "+(varciclo)+" order by apellido, nombres, csec ASC ")
oRs:Open()
oRs:MoveFirst()

¿Por dónde puedo averiguar de qué se trata?
Gracias por todo.


English version of google traductor

Friends:
I have a small system that reads data from a MySQL database. I have no problem with version 2.9.3 HMG which is what had been taken.
Now when I try to use version 3.0.0, I get the following error:

Error BASE/3012 failure argument: ActiveConnection

Called from TOLEAUTO:ACTIVECONNECTION(0)
Called from CARGARARRAYS(224)
Called from CONECTA(164)
Called from (b)INGRESAR(51)
Called from _DOCONTROLEVENTPROCEDURE(4749)
Called from EVENTS(1761)
Called from _DOMESSAGELOOP(0)
Called from _ACTIVATEWINDOW(4413)
Called from INGRESAR(110)
Called from (b)MAIN(89)
Called from _PROCESSINITPROCEDURE(4588)
Called from _ACTIVATEWINDOW(4376)
Called from MAIN(173)

This is the error code:
oRs := CreateObject("ADODB.Recordset")
oRs:LockType := adLockOptimistic
oRs:CursorType := 3
oRs:Cursorlocation = adUseClient
oRs:ActiveConnection(oMiConexion) // <--Line 224
oRs:Source := ("select * from alumno where estado = 1 and ciclo = "+(varciclo)+" order by apellido, nombres, csec ASC ")
oRs:Open()
oRs:MoveFirst()

Where do I find out what it is?
Thanks for everything.
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: Error with mysql

Post by Roberto Lopez »

Cartago wrote:Amigos:
Tengo un pequeño sistema que lee datos de una base mysql. No tengo problemas con la versión HMG 2.9.3 que es la que venía utilizando.
<...>
ADORDD is broken in current Harbour version.

Apparently, there is no developers volunteering to fix it.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
Cartago
Posts: 13
Joined: Sun Dec 28, 2008 12:48 pm

Re: Error with mysql

Post by Cartago »

Roberto,
gracias por la información.
Qué se le va a hacer.
Saludos.
Post Reply