How can I put multiple variable types in a message box?

Capture

1 Like

Just add + between variables.

" The number is " + variable1 + variable2 + variable3

If you want spaces between variables -

"The number is " + variable1 + " " + variable2 + " " + variable3

If variable is not a string type then add .ToString to the variable.

" The number is " + variable1.ToString

Regards,
Karthik Byggari

8 Likes

Hi @ROBERT_RUSSELL_MONSA,
Welcome to forum. As @KarthikByggari mentioned just append variables and convert them to .tostring as message box accepts string input.

4 Likes

Hi @ROBERT_RUSSELL_MONSA,

Try this

"The number is " + random.Tostring

Note: You have to convert the variable to string datatype while using in Message box activity.

Thanks!

3 Likes

Thank you so much, Sir.

2 Likes

Thank you so much.

1 Like

Thank you very much.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.