Sugiro a vc que, antes de chamar a fun��o de conex�o (SqlConnect), coloque Set SqlResultSet = TRUE. Com isso, qualquer conex�o que for feita estar� com result set ativo.

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eder Luis Jorge
Sent: quinta-feira, 7 de dezembro de 2000 11:52
To: [EMAIL PROTECTED]
Subject: Re: [sqlwin] Problemas com Result Sets

 

Ol� Thiago

 

Chame a funcao SqlResultSet( TRUE ) antes de chamar qq funcao SQL

 

[]s, Eder

----- Original Message -----  

To: [EMAIL PROTECTED]

Sent: Thursday, December 07, 2000 12:22 PM

Subject: [sqlwin] Problemas com Result Sets

 

Ol�,

 

Tenho um problema um pouco chato, na minha aplica��o depois de um tempo acessando

aos dados do banco e pedir para imprimir um determinado QRP,  Logo ap�s isso ele exibe

um erro assim:

 

Result sets not active

 

 Reason: Attempting to get the number of rows in a result set with the
       API function call sqlnrr() or attempting to set a position
       within a result with the API function call sqlprs() and the
       application program is not in result set mode.

 

      Remedy: Correct the application. The application must be result set
       mode before attempting to get the number of rows in a result set
       or before attempting to position within a result set.

 

Alguem sabe como solucionar meu problema? Eu tenho o Centura 1.1.2 PTF11

 

Valeu,  Obrigado

 

Thiago Menezes Montagner

Midialog - Grupo Ibope

[EMAIL PROTECTED]

Responder a