Results 1 to 2 of 2
  1. #1
    Star Lounger
    Join Date
    Aug 2001
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Line breaks in a Label (2000)

    I'm trying to generate a summary in a label. How can I specify line breaks? in C++ it would be..

    cout << "Line 1" << endl << "Line 2";

    But I can't find the syntax in the VB help. Thanks.

    Kevin

  2. #2
    5 Star Lounger
    Join Date
    Jul 2002
    Location
    Toronto, Ontario, Canada
    Posts
    1,139
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Line breaks in a Label (2000)

    If you are doing it in VBA code then yoou need vbCRLF

    strMyVariable = "Line 1" & vbCrLf & "Line 2"
    --
    Bryan Carbonnell - Toronto <img src=/S/flags/Ontario.gif border=0 alt=Ontario width=30 height=18> <img src=/S/flags/Canada.gif border=0 alt=Canada width=30 height=18>
    Unfortunately common sense isn't so common!!
    Visit my website for useful Word, Excel and Access code, templates and Add-Ins

Posting Permissions

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