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.
METHOD CurrentWhere( lOrgTable ) CLASS XMySQLRecords
LOCAL nField, cWhere := ""
FOR EACH nField IN ::aPKFields
IF !Empty( cWhere )
cWhere += " AND "
ENDIF
IF lOrgTable
IF !Empty( ::cTable )
cWhere += ::cTable + "."
ENDIF
ELSEIF !Empty( ::aStruct[ nField, 8 ] )
cWhere += ::aStruct[ nField, 8 ] + "."
ENDIF
WITH OBJECT ::oDataset
IF :lOnEdit
cWhere += ::aStruct[ nField, 1 ] + "=" + ValToStr( ::aRecord[ nField ] )
ELSE
cWhere += ::aStruct[ nField, 1 ] + "=" + ValToStr( ::aData[ ::Recno, nField ] )
ENDIF
END WITH
NEXT
RETURN cWhere
If you do not know how to correct the code, just let me know and I make things easier for you. BTW, I suggest you move to MariaDB; you just need to change the datasource, that's all. MySQL dll is not freeware, but MariaDB it is.