Results 1 to 2 of 2

Thread: Code to the next line

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Posts
    183

    Code to the next line

    Ok really simple but I have searched for this one...
    when I am writing code how do I span lines in VB I used the &_

    so I want to have:
    string yad = "dadadadadadadadadadadadada
    dadadadadadadadadadadada";

    instead of
    string yad = "dadadadadadadadadadadadadadadadadadadada";

  2. #2
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    sumvar = "asdfasdfasdfas" & _
    "asdfasfasdfa"

    if you just want the string to contain a carriage return, it would be:

    sumvar "asdfasdfasdfas" & char(13) & char(10) & "asdfasdfasdfasdf"

    you can use vbcrlf instead if you import System.VisualBasic.
    Need to re-register ASP.NET?
    C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i

    (Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)

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