Handling Application Errors
Agile Business Suite treats all messages from the host as an error message. In other words, it does not distinguish between messages raised using the Message Attention or Message Error commands. The error messages in Component Enabler are held in the error array, which is part of the Status Line object. The following code is an example of accessing the number of errors returned by an Ispec and then accessing each error line. Java uses zero-based arrays, so the error numbers start at zero.
Dim iCount As Integer For iCount = 0 to mvarStatus.getErrorCount() - 1 MsgBox mvarStatus.getError(iCount) Next iCount
Retrieving the Status Line Text
Use the status line object’s getStatus method to read the status line text, for example:
txtStatus.Text = mvarStatus.getStatus()