3.5.1.7.22 xf_get_last_error_code

Description

This function is used to get the last error code value of the XFunction engine.

Syntax

int xf_get_last_error_code()

Return

Returns error code value if the last XFunction executed produced an error otherwise returns 0.

Error codes are for internal use and therefore meaningless, but you can test for an error then use another function to get the error message. See example below.

Example

if(xf_get_last_error_code())
{
	string msg$ = xf_get_last_error_message()$;
	ty %(msg$);
}

See Also

xf_get_last_error_message