hago lo siguiente:
Code: Select all | Expand
CONNECT oServer HOST shIni["MARIADB"]["host"] ; USER shIni["MARIADB"]["user"] ; PASSWORD shIni["MARIADB"]["pase"] ; PORT shIni["MARIADB"]["puerto"] ; FLAGS 0; DATABASE shIni["MARIADB"]["database"] ; ON ERROR MiError( oServer, nError, lInternal ) return( nil )PROCEDURE MiError( oServer, nError, lInternal ) LOCAL cText := "" cText += "Error from Custom Error Message" + CRLF cText += "================================" + CRLF cText += oServer:ErrorTxt() + CRLF cText += "ERROR No: " + Str( nError ) + CRLF cText += "Internal: " + If( lInternal, "Yes", "No" ) + CRLF ? cText + CRLF
que estoy haciendo mal?
porque en MiError() oServer es nil, en consecuencia me da error al ejecutar la sentencia oServer:ErrorTxt()
tambien pregunto: debo pasar lInternal, como .T. o .F. o solo mencionar la variable? y el manejdor me dice si el error es "MYSQL" o "TDOLPHIN" ?
gracias por tu tiempo