Results 1 to 3 of 3

Thread: Keyword For Line Break

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Posts
    94

    MsgBox

    To do a line break in a message box, use the Chr(13) function in the prompt string, eg,

    MsgBox "This is line 1" & Chr(13) & "This is line 2"


  2. #2
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    Or:
    Code:
    MsgBox "This is 1" & vbCrLf & "This is 2"
    vbCrLf being the break.

    Laterz,
    D!m
    Dim

  3. #3
    Guest
    There is a variety of them:

    • vbNewLine (Not supported in VB4)
    • vbCrLf
    • Chr(13)
    • Chr(vbKeyEnter)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width