GetErrorText
Overview | Properties | Methods
Outputs a relevant error string based on a returned error code.
Syntax
string = PieChartObject.GetErrorText(ErrorCode As Long)
The GetErrorText method syntax has the following parts:
Part |
Description |
ErrorCode |
An error code which is returned from a function call. |
string |
An error string which describes the error that occurred. |
Returns
An error string.
Remarks
All functions with the exception of GetErrorText return an error code (a long) which signifies the success/failure of the operation. Zero (0) is returned if the operation is successful, otherwise a non-zero value is returned. If the return is non-zero you can use GetErrorText to retrieve an error string.
NOTE: The Pie Chart Server control will also throw an exception if an error occurs, so instead of using the GetErrorText method you can examine the thrown exception for a meaningful error message.
When attempting to obtain a meaningful error message you MUST load the page producing the jpeg (i.e. the page with the SendJPEG call) directly into your browser (i.e. do not load this page with an <IMG> tag from another page).