WA GET LAST URL ERROR

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 11.2


WA GET LAST URL ERROR ({*; }object; url; description; errorCode)

ParameterTypeDescription
**If specified, object is an object name (string)
If omitted, object is a variable
objectForm objectObject name (if * is specified) or
Variable (if * is omitted)
urlStringURL at origin of error
descriptionStringDescription of error (Mac OS)
errorCodeLongintError code

Description

The WA GET LAST URL ERROR command can be used to recover several items of information concerning the last error occurring in the Web area designated by the * and object parameters.

This information is returned in three variables:

url: URL causing error.

description (Mac OS only): a text describing the error (if available). If it is not possible to associate a text with the error, an empty string is returned. Under Windows, this parameter is always returned empty.

errorCode: the error code.

- If the code is >=400, it is an error related to the HTTP protocol. For more information about this type of error, refer to the following address:

http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

- Otherwise, it is an error returned by the WebKit (Mac OS) or ActiveX (Windows).

It is advisable to call this command within the framework of the On URL Loading Error form event in order to find out the cause of the error that just occurred.

See Also

Form event.


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next