Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iLogic MessageBox

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Fleagle8t
10253 Views, 3 Replies

iLogic MessageBox

Hi Folks,

I hope someone can help me out?....

I'm puzzled as to how to get more than one line of text into a Message Box if this is possible.

 

 

Thanks 

3 REPLIES 3
Message 2 of 4
jingyi.liu
in reply to: Fleagle8t

For VB language, vbcrlf stands for carriage return, so you could try it as below:

 

 

My_Message="Line1"+vbCrLf+"Line2"

MessageBox.Show (My_Message, "My Message")

 

 

good luck!



Jingyi Liu

Inventor Product Manager
Message 3 of 4

Hi Fleagle8t,

 

In addition to jingyi.liu suggestion, you will often see & vblf & used to get the same result:

 

MessageBox.Show ("Line1" & vblf & "Line2", "My Message")

 

As as added note, I often like to use a space and underscore in the code to add a line return in the code, for example:

 

MessageBox.Show ("Some text here used for Line1" _
& vblf & "More text here used for Line2" _
& vblf & "More text here used for Line3" _
& vblf & "" _ 'nothing for line4
& vblf & "More text here used for Line5", "My Message")

 Autodesk Inventor iLogic Wrap Line MessageBox Multiple Line Message Box.png

 

Using vbNewLine will work also:

 

MessageBox.Show ("Some text here used for Line1" _
& vbNewLine  & "More text here used for Line2" _
& vbNewLine & "More text here used for Line3" _
& vbNewLine & "" _ 'nothing for line4
& vbNewLine  & "More text here used for Line5", "My Message")

 I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

Message 4 of 4
Fleagle8t
in reply to: Fleagle8t

Thanks Jingyi.liu and Curtis you have really helped me out you're Stars !! ;0)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report