Jump to content
Developer Wiki and Function Reference Links ×

Return In Message()


Recommended Posts

  • Vectorworks, Inc Employee

It may not work but it would be:

Message(Concat('Increment Dimmer: ',DimVal,CHR(13),'Increment Channel: ',ChanVal));

but I'm not sure if a message window will properly deal with a return character on both platforms. I have some memory of it working on one platform but not the other.

Kevin

Link to comment

Pat,

This is what I've got at the moment:

Procedure Test;

Begin

Message('This is line 1',chr(10),'This is line 2');

End;

Run (Test);

Results are attached as well as variations to chr(13) and chr(13),chr(10).

It appears that it's identifying those characters as spaces, just judging by chr(13),chr(10) resulting in a double space.

Let me know what you think.

Cheers,

James

Link to comment
  • 8 years later...

VW 2011 was the first version that accepted Carriage Return (CR) characters in the Message Window; and Windows and Mac have different codes to accomplish this. The Mac uses CHR(13) for a CR while Windows uses CHR(13), CHR(10).

 

So for Mac:

Message('Line 1', chr(13), 'Line 2'); 

and

Message('Line 1', chr(10), 'Line 2'); 

and

Message('Line 1', chr(13), chr(10), 'Line 2');

 

and for Windows:

Message('Line 1', chr(13), chr(10), 'Line 2');

 

all produce the same output.

 

______________________________________

x + VectorScript Message

______________________________________

Line 1

Line 2

______________________________________

 

HTH,

Raymond

  • Like 2
Link to comment
  • 2 weeks later...

I'm using Win 10. Here is some info about your question.

If you want to force a new line in a message box, you can include one of the following: 

The Visual Basic for Applications constant for a carriage return and line feed, vbCrLf.

The character codes for a carriage return and line feed, Chr(13) & Chr(10).

  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...