How can I get the message from the bottom of the current 5250 screen into my RAMP script?

RAMP-NL

How can I get the message from the bottom of the current 5250 screen into my RAMP script?


Use a script like this:

  

     {

           var strMessage = GETVALUE("ActiveForm.Message");  /* Get the message into JavaScript variable strMessage     */

           if (strMessage != "") ALERT_MESSAGE(strMessage);    /* If a message was retrieved, display it in a message box */

      }