CT Error

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

version 1


CT Error (message) Integer

ParameterTypeDescription
messageStringReceives error message
Function resultIntegerStatus of the last operation performed by 4D Chart
0 = the last operation did not cause an error
>0 = an error occurred during the last operation

Description

CT Error returns a number that represents the status of the last operation performed by 4D Chart.

If CT Error returns 0, the last operation did not cause an error. If CT Error returns a number other than 0, an error occurred during the last operation.

If several areas are active on the same form, CT Error returns the last error, without discriminating between areas.

See the section Error Codes for a complete list of error codes.

If the optional message parameter is passed to CT Error, it must be a text variable that will contain the text of the error after the call.

Example

This example checks to see if an error occurred in the previous command.

   If (CT Error # 0)
      `The last operation caused an error
   End if 

See Also

4D Chart Error Codes, CT ON ERROR.


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