4D Internet Commands v14IT_ErrorText |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D Internet Commands v14
IT_ErrorText
|
IT_ErrorText ( error ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
error | Integer |
![]() |
Error code returned from other commands | |||||
Function result | String |
![]() |
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.
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
Product: 4D Internet Commands
Theme: IC Utilities
Number:
88911
Created: 4D Internet Commands 6.5
4D Internet Commands ( 4D Internet Commands v11.4)
4D Internet Commands ( 4D v13.2)
4D Internet Commands ( 4D Internet Commands v12.1)
4D Internet Commands ( 4D Internet Commands v14 R2)
4D Internet Commands ( 4D Internet Commands v14)
4D Internet Commands ( 4D Internet Commands v14 R3)
4D Internet Commands ( 4D Internet Commands v14 R4)