Progress
ADM 2 Reference


anyMessage (smart.p)

Returns a flag indicating whether there is any message in the error message log.

Parameters: None

Returns: LOGICAL

Notes: Error messages generated during the execution of SmartObjects (especially SmartDataObjects) are normally saved in a message log (actually just a specially formatted character string). This assures that multiple messages can be accumulated for multiple errors that occur during an update, and that they will be returned properly to the client when the errors occur in a separate Progress session on an AppServer. If using a SmartDataObject as the data-source, check BOTH in the SmartDataObject and internally, because WebSpeed-specific errors are always stored internally.

Examples:

IF anyMessage() THEN
  /* code for unsuccessful update */
ELSE
  /* code for successful update */ 


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095