Results 1 to 3 of 3

Thread: new line in VBScript

  1. #1
    Join Date
    Apr 2006
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default new line in VBScript

    How can I continue to the next line?

    <%=cmdContent+"<Table><tr><td>sdasdad</td></tr></Table>"%>

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    If it's anything like the BASIC/VB6 I remember, leaving a trailing underscore (_) on the end of the line should enable you to carry on to the next line. You may have to abandon the short tag, though.
    Code:
    <%=cmdContent+"<table><tr><td>" _
    + "sdasdad</td></tr></table>"%>
    or:
    Code:
    <% Response.write(cmdContent+"<table><tr><td>" _
    + "sdasdad</td></tr></table>") %>
    (or something similar, I know no VBScript at all and only a little VB, rusty from long disuse).
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Please post in the correct forum category next time. Both your VBscript threads were incorrectly posted in the DD Scripts Help category, when it should belong in the "Other" category instead.

Bookmarks

Posting Permissions

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