PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WX 22] HErrorInfo
[WX 22] HErrorInfo
Iniciado por guest, 27,feb. 2018 19:16 - 7 respuestas
Publicado el 27,febrero 2018 - 19:16
I'm having some trouble using HErrorInfo, can't get it to show me what the error was, my code is as follows:

IF ErrorOcurred() THEN
IF HerrorIntegrity() THEN
sError = HerrorInfo()
END
END

Info(sError)

It always returns empty, but if I debug that part of code, and check what HErrorInfo shows in the debugger it actually tells me what the problem was.
Publicado el 27,febrero 2018 - 20:29
Maybe try using some of the different constants to see if you can get something? Or hErrMessage instead of letting it default.

HerrorInfo(hErrMessage)

https://doc.windev.com/en-US/…
Publicado el 01,marzo 2018 - 18:39
Hello!
I've already tried hErrMessage and the one that says fullDetails, but still nothing :(
Publicado el 01,marzo 2018 - 18:53
Did you try using ErrorInfo(errFullDetails) instead of HerrorInfo.
Publicado el 01,marzo 2018 - 23:31
I'll try that one, thanks!
Publicado el 01,marzo 2018 - 23:38
It worked! Thanks Paulo!
Publicado el 04,marzo 2018 - 03:41
I've found it depends on the error and where it occurs as WX seems to translate some things that are one kind of error as an Exception error. it might also pay to look at

ExceptionInfo() (same options as ErrorInfo)
Publicado el 05,marzo 2018 - 17:32
Thanks for the info ChristoK!