Method called on 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 6.8.1


Method called on error String

ParameterTypeDescription
This command does not require any parameters
Function resultStringName of method called on error

Description

The Method called on error command returns the name of the method installed by the ON ERR CALL command for the current process.

If no such method has been installed, an empty string ("") is returned.

Example

This command is particularly useful in the context of components because it enables you to temporarily change and then restore the error-catching methods:

   $methCurrent:=Method called on error
   ON ERR CALL("NewMethod")
      ` If the document cannot be opened, an error is generated
   $ref:=Open document("MyDocument")
      ` Reinstallation of previous method
   ON ERR CALL($methCurrent)

See Also

ON ERR CALL.


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