DATASETS
Publicado: Lun Jul 03, 2006 5:17 am
Hola a Todos !
Tengo 2 Preguntas
Cuando se ha creado un DataSet , tengo entendido se crea un archivo temporal
donde se guarda el Select.
1.- Como copio ese archivo a un Dbf para despues de ahi hacer el resto de
las operaciones.?
2.-Cuando abro dos o mas DataSets en forma seguida me aparece el siguiente
error:
el error sale cuando esta la propiedad :lAsynFetch en .T. , cuando
esta en .F. no sale este error
es normal o no al cambiar esta propiedad?
Primary Keys retrieve error
Class:s1000
[Microsoft][ODBC SQL Server Driver] Connection is busy with results for
another hstmt [#0]
on Procedure:TPOLIZACONTADO:BtnProcesar line:254
cSQLCATCUENTAS := 'Select * From CatCuentasContables Order by CtaMay,
SubCta, SSbCta, SSSCta'
WITH OBJECT ::oDSCATCUENTAS
:cSelect:=cSQLCATCUENTAS
:lAsynFetch :=.t. // ::oChkAsyn:lChecked
:OnComplete := {|| MSGINFO(::oDSCATCUENTAS:cNAME) }
:lDateAsString:=.t.
:Open()
END WITH
cSQLBANCOS := 'Select Cta_Bancaria, SUM(Importe * TipoCambio) As Suma,
TipoCambio From mVBacB ' +;
' WHERE FechaMov = ' + CHR(39)+ cFechaBanco + CHR(39) +;
' AND cveCancel <> ' + CHR(39)+ 'C' + CHR(39) +;
' AND Origen = ' + CHR(39)+ 'B' + CHR(39) +;
' GROUP BY CTA_BANCARIA,TIPOCAMBIO ORDER BY Cta_Bancaria'
With object ::oDSBANCOS
:cSelect:=cSQLBANCOS
:lAsynFetch :=.t. // ::oChkAsyn:lChecked
:lDateAsString:=.t.
:Open() <====== linea 254
end with
Tengo 2 Preguntas
Cuando se ha creado un DataSet , tengo entendido se crea un archivo temporal
donde se guarda el Select.
1.- Como copio ese archivo a un Dbf para despues de ahi hacer el resto de
las operaciones.?
2.-Cuando abro dos o mas DataSets en forma seguida me aparece el siguiente
error:
el error sale cuando esta la propiedad :lAsynFetch en .T. , cuando
esta en .F. no sale este error
es normal o no al cambiar esta propiedad?
Primary Keys retrieve error
Class:s1000
[Microsoft][ODBC SQL Server Driver] Connection is busy with results for
another hstmt [#0]
on Procedure:TPOLIZACONTADO:BtnProcesar line:254
cSQLCATCUENTAS := 'Select * From CatCuentasContables Order by CtaMay,
SubCta, SSbCta, SSSCta'
WITH OBJECT ::oDSCATCUENTAS
:cSelect:=cSQLCATCUENTAS
:lAsynFetch :=.t. // ::oChkAsyn:lChecked
:OnComplete := {|| MSGINFO(::oDSCATCUENTAS:cNAME) }
:lDateAsString:=.t.
:Open()
END WITH
cSQLBANCOS := 'Select Cta_Bancaria, SUM(Importe * TipoCambio) As Suma,
TipoCambio From mVBacB ' +;
' WHERE FechaMov = ' + CHR(39)+ cFechaBanco + CHR(39) +;
' AND cveCancel <> ' + CHR(39)+ 'C' + CHR(39) +;
' AND Origen = ' + CHR(39)+ 'B' + CHR(39) +;
' GROUP BY CTA_BANCARIA,TIPOCAMBIO ORDER BY Cta_Bancaria'
With object ::oDSBANCOS
:cSelect:=cSQLBANCOS
:lAsynFetch :=.t. // ::oChkAsyn:lChecked
:lDateAsString:=.t.
:Open() <====== linea 254
end with