Hi all
I have question that how to call Messagebox to display Multiline.
In Visual Basic : i can using VBCRLF to enter next line in MessageBox.
Example :
MsgBox "Hello" & VBCRLF & "World"
Messagebox'll show 2 words Hello and World in two line .
How to do this with MASM.
Posted on 2004-04-03 01:09:05 by neverending
CRLF is Carraige Return/ Line Feed. They are ascii 13 and 10 respectively :

msg db "Line 1",13,10,"line 2",0

invoke MessageBox,NULL,offset msg,NULL,MB_OK
Posted on 2004-04-03 01:43:59 by donkey
You don't even need the Carriage Return (13) character. I used it only with line feed (10) and it went ok.

Ex:
Posted on 2004-04-03 03:42:38 by bszente
Sorry for the typo... I pressed the Enter accidentally...

Ex: msg db 'Line 1',10,'Line 2',0
Posted on 2004-04-03 03:43:49 by bszente
bszente

For your info and future convenience,

If you look at the section below your message where the date and time of your message are displayed, you will see several buttons to the right of it. One if them is titled edit.

If you click on that button after you post a message, you can modify that message without having to post another corrected one. You can also use that option to delete or change an attachement to your message.

Raymond
Posted on 2004-04-03 11:19:59 by Raymond
Raymond,


thanks for your indication. From now one I will do in that way and I will pay more attention.
I'm a new user of this forum, and I'm not used with the possibilities yet.

I hope in the future I wont bother you with such problems.

bszente
Posted on 2004-04-03 13:43:35 by bszente
Hi all of you
thank alot :alright:
Posted on 2004-04-03 21:25:08 by neverending