Jump to content
Sign in to follow this  
Kaso

Msgbox, Test on 2 lines?

Recommended Posts

I remember reading something about it but I could not find it. How do you get the text to appear on a 2 lines? for example:

Usermane: user

Password: pass

Anyhelp would be appreciated

MsgBox ( flag, "title", "text" [, timeout] )

Share this post


Link to post
Share on other sites

I remember reading something about it but I could not find it. How do you get the text to appear on a 2 lines? for example:

Usermane: user

Password: pass

Anyhelp would be appreciated

MsgBox ( flag, "title", "text" [, timeout] )

Try this

MsgBox(4096, "Test", "This box will" & @CRLF & "time out in 10 seconds", 10)


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

damnit why do you get the easy stuff :graduated:

Thats the only ones I can answer, plus I hit refresh a lot. B):o


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Try this

MsgBox(4096, "Test", "This box will" & @CRLF & "time out in 10 seconds", 10)
-thanks I will give that a try. I have lots of other easyones bigdod that you can answer B)

Share this post


Link to post
Share on other sites

It is only a messagebox. Using @LF or @CR for a new line should be adequate.

Thanks for the correction, I sometimes get carried away.


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

It is only a messagebox. Using @LF or @CR for a new line should be adequate.

What's the difference between a @LF, a @CR and a @CRLF? I know that @CRLF is stronger but what are they used for?

[-"Scriptkiddie, nice to meet you!"-]

Share this post


Link to post
Share on other sites

@cr won't work because it just sets back the pointer to first char

@lf files up the line until there are no more free spaces

@crlf is a combination of these 2

Thanks for the quick reply B)

[-"Scriptkiddie, nice to meet you!"-]

Share this post


Link to post
Share on other sites

What's the difference between a @LF, a @CR and a @CRLF? I know that @CRLF is stronger but what are they used for?

@LF is used in *unix OSes. Chr(10)

@CR is used in MAC OSes. Chr(13)

@CRLF is used in Windows OSes. Chr(10) and Chr(13)

Messagebox usage does work with any of the above, and you will not copy text from a messagebox into any windows based editor to cause any problems.

@cr won't work because it just sets back the pointer to first char

@lf files up the line until there are no more free spaces

@crlf is a combination of these 2

You must be one of the few that use @CRLF for messageboxes. Everyone else uses @CR or @LF without problems.

MsgBox(0, '', 'line1' & @LF & 'line2' & @LF & 'line3')
MsgBox(0, '', 'line1' & @CR & 'line2' & @CR & 'line3')
MsgBox(0, '', 'line1' & @CRLF & 'line2' & @CRLF & 'line3')
Edited by MHz

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...