getAlterrtext()  produce()

Chapter 4: Production Objects and Methods

geterrtext()

Description

Retrieves the error text generated by the production object and places the text into a string variable. The error is set when a failure such as error during parsing of data occurs.

Syntax

geterrtext(string *ErrTxt);

Parameter

Description

ErrTxt

Pointer to a string variable to hold the error text.

Return value

Integer.

Returns the most recent error number set by the production object.

Examples

Example 32

string my_msg;
my_prod.geterrtext(&my_msg);
erm("Production Error : [ %s]", my_msg );

where my_prod is the name of the production object.





Copyright © 2005. Sybase Inc. All rights reserved. produce()

View this book as PDF