WR Error text

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

version 6.0


WR Error text (error) String

ParameterTypeDescription
errorIntegerNumber of error
Function resultStringText description of the error specified by Error

Description

The WR Error text command returns a text description of the error specified by error. You can use this function to receive a description of the error returned by WR Error number.

Example

The following example tests for an error and then displays a different error message depending upon whether or not the user is the Designer:

   $Error:=WR Error number (Area)
   If ($Error#0)
      If (Current user="Designer")
         ALERT (WR Error text ($Error))
      Else
         ALERT ("A problem has occurred. Please notify your manager.")
      End if
   End if

See Also

Appendix C: Error Codes, WR Error number, WR ON ERROR.


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