4D Internet Commands v16

IT_ErrorText

Home

 
4D Internet Commands v16
IT_ErrorText

IT_ErrorText 


 

IT_ErrorText ( error ) -> Function result 
Parameter Type   Description
error  Integer in Error code returned from other commands
Function result  String in Text of the error

The IT_ErrorText command takes an integer error number as its only parameter and returns the String/Text description of that error. Note that this is one of the few 4D Internet Commands that does not return an Integer as its functional value.

error is the integer number of the error.

Example  

The following is an example of an ErrorCheck routine that will display an alert message explaining the cause of an error.

  `Method: ERRCHECK ("Command Name"; Error# ) -> True/False
 C_TEXT(vErrorMsg)
 $Command:=$1
 $Error:=$2
 $Result:=True
 If($Error#0)
    $Result:=False
    vErrorMsg:=IT_ErrorText($Error)
    ALERT("ERROR -- "+Char(13)+"Command: "+$Command+Char(13)+"Error Code:"+String($Error)
    +Char(13)+"Description: "+vErrorMsg)
 End if
 $0:=$Result



See also 

Appendix A, Programming Tips

 
PROPERTIES 

Product: 4D Internet Commands
Theme: IC Utilities
Number: 88911

 
HISTORY 

Created: 4D Internet Commands 6.5

 
ARTICLE USAGE

4D Internet Commands ( 4D Internet Commands v16)