MsgHMGError
Posted: Mon May 05, 2014 4:02 pm
There is a function MsgHMGError which allows to write in ErrorLog.Htm file.
This function is usefull when we wish to write runtime errors at log file and it makes use of Html_ functions which are also usefull. These Html_ functions are placed at ..\SOURCE\ErrorSys.prg but there is missing a very important function: HTML_END which must end the html file appropriately and also close the file handle (in this case: ErrorLog.Htm file). When this file is created, this file will keep the file still open and do not allow to access it, until the application is closed.
For the proper functioning of these functions in HTML, is important to include this function:
Function HTML_END(nFHandle)
FWriteLine( nFHandle, "</table></body></html>" )
FClose( nFHandle )
Return Nil
Rathi + Claudio, recently in my last update in HMG_HPDF.Prg I had included this function but with missing FClose(HTMARCH) (here were for download) . Please, make it sure to correct and delivered for next HMG upgrade.
These HMTL functions It was created at HMG_HPDF to make TABLEs and I think all these HMTL functions (including at ErrorSys.prg) would be located in separated file. In order to growing up with separated lib in hfcl. What do you think ?
Please, confirm your decision.
This function is usefull when we wish to write runtime errors at log file and it makes use of Html_ functions which are also usefull. These Html_ functions are placed at ..\SOURCE\ErrorSys.prg but there is missing a very important function: HTML_END which must end the html file appropriately and also close the file handle (in this case: ErrorLog.Htm file). When this file is created, this file will keep the file still open and do not allow to access it, until the application is closed.
For the proper functioning of these functions in HTML, is important to include this function:
Function HTML_END(nFHandle)
FWriteLine( nFHandle, "</table></body></html>" )
FClose( nFHandle )
Return Nil
Rathi + Claudio, recently in my last update in HMG_HPDF.Prg I had included this function but with missing FClose(HTMARCH) (here were for download) . Please, make it sure to correct and delivered for next HMG upgrade.
These HMTL functions It was created at HMG_HPDF to make TABLEs and I think all these HMTL functions (including at ErrorSys.prg) would be located in separated file. In order to growing up with separated lib in hfcl. What do you think ?
Please, confirm your decision.