Multiple Line Dialog Messages

QUESTION: I am using Dialog_Message to create a message for the user of my program, but the message is very long and I would like to display it on multiple lines. Is there any way to do this in IDL?

ANSWER: Yes, make the argument to Dialog_Message a string array, rather than a string scalar. Dialog_Message will display each element of the string array on a separate line in the dialog.

   IDL> ok = Dialog_Message( ['This is the first line', 'of a', ' three line message'] )

A multiple line dialog message.

Google
 
Web Coyote's Guide to IDL Programming