In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Version 2.7.1 test

Xailer professional forum in English
Responder
Fabio Gianellini
Mensajes: 31
Registrado: Mar Jul 07, 2009 9:20 am

Version 2.7.1 test

Mensaje por Fabio Gianellini »

dear all, i'm try to test the new version 2.7.1 using harbour compiler on some simple project.
using xharbour no problem, using harbour when i activate the filterbar on a dbbrowse i receive an datacontrol error
here attached the error and the sample project
to buil the project i have:
1. change the project definition from xharbour to harbour
2. no external library (only default)
3. clean the project
4. rebuild
thank's in advance

Attached files test.zip (31.9 KB)Â
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9440
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Version 2.7.1 test

Mensaje por ignacio »

Fabio Gianellini escribió el mié, 24 octubre 2012 12:32dear all, i'm try to test the new version 2.7.1 using harbour compiler on some simple project.
using xharbour no problem, using harbour when i activate the filterbar on a dbbrowse i receive an datacontrol error
here attached the error and the sample project
to buil the project i have:
1. change the project definition from xharbour to harbour
2. no external library (only default)
3. clean the project
4. rebuild
thank's in advance
Hello,
Bug found. Here is the code corrected:
METHOD Filter( cExp ) CLASS XAdoRecords
LOCAL cOldFilter
WITH OBJECT ::oAdo
TRY
cOldFilter := :Filter
IF cExp != Nil
:Filter := cExp
ENDIF
CATCH
::NewADOError( "ADODB:RecordSet:Filter( " + cExp + " )" )
END
END WITH
IF Valtype( cOldFilter ) != "C"
cOldFilter := ""
ENDIF
RETURN cOldFilter
You can modify the original module or do the following on any of your source files:
CLASS TAdoRecords FROM XAdoRecords
METHOD Filter( cExp )
ENDCLASS
METHOD Filter( cExp ) CLASS TAdoRecords
LOCAL cOldFilter
WITH OBJECT ::oAdo
TRY
cOldFilter := :Filter
IF cExp != Nil
:Filter := cExp
ENDIF
CATCH
::NewADOError( "ADODB:RecordSet:Filter( " + cExp + " )" )
END
END WITH
IF Valtype( cOldFilter ) != "C"
cOldFilter := ""
ENDIF
RETURN cOldFilter
If you choose this second way do not forget to delete this code with the new Xailer update.
Regards,
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Responder