sqlgetmsg() — Get Next Error Message
Gets the next message in the Progress message queue.
This function returns a pointer to the next error message in the message queue. If there are no messages in the queue, it returns a NULL character pointer:
NOTE
EXAMPLE
- The execution of each SQL statement may cause additional messages to be appended to the queue. This function provides one-way retrieval of these first-in-first-out messages.
- Once you retrieve a message, it is removed from the queue and you cannot retrieve it again using
sqlgetmsg()
. Your application must save any messages that it needs to retain.- Progress clears the message queue at the start of each ESQL-LIB entry point except:
This example shows how to retrieve messages for a preceding SQL statement:
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |