RobotStudio event

UIMessageBox EventArgs

I am trying to capture event args for UIMessageBoxs. The problem I am having is when there is a comma or [] in the message string. The event args are giving me a MsgArray instead of a single message.

I try running this message box for instance.

MessageAnswer:=UIMessageBox (
Header:="Header"
Message:="Single, Message [2]"
Buttons:=btnOKCancel
Icon:=iconInfo);

This is what the event args gives me.

MsgArray
[0] = "Single"
[1] = "Message 2"
[2] = "Message 2"

It does not give me the comma in the string or either of the brackets. Is there a different way to pull the message into the eventArgs? Is this the way the message is supposed to come through? Also, I do not want it broken into separate array entities.

Thanks for the help.



Comments

  • I'm having the same issue.  Did you ever find a solution?