Capture error of htmlviewer

I need to capture the possible errors of a HTMLViewer object such 401cuando 400 error or can not load the page and then take another procedure

The LR is your friend :
http://documentation.xojo.com/index.php/HTMLViewer.Error

But what’s is correct syntax?

Dim VerError as string
VerError =HTMLViewer.Error ( ErrorNumber as Integer, ErrorMessage as String )
.
.
if VerError = “404” then
.
.

[quote=118337:@Fernando Pinto]But what’s is correct syntax?

Dim VerError as string
VerError =HTMLViewer.Error ( ErrorNumber as Integer, ErrorMessage as String )
.
.
if VerError = “404” then
.
.[/quote]

  • Add the Error event handler to HTMLViewer (Right click/Add…/Event Handler)
  • In the Error event code, ErrorNumber is available as integer, and ErrorMessage as string
  • In that event, you put your

Dim VerError as integer if VerError = 404 then

Thank’s