Capture system message in any variable.

Hello All,

Happy New year in advance…

I have query that Can it is possible to capture any system message in any variable.I am not saying that user defined message.

Thanks in advance…

You can use GETLASTERRORTEXT to get the last error message that was generated. To know more check msdn.microsoft.com/…/dd355270(v=nav.90).aspx

Hi Sowkarthika,

Thanks for the reply…
This I know already but I don’t want to capture any error but I want to capture any message that come from the system.

What do you mean by any message??

In last of the code you can write this as

If GETLASTERORTEXT <> ‘’ THEN
Variable := GETLASTERORTEXT