Results 1 to 7 of 7

Thread: Line problems

  1. #1

    Thread Starter
    Addicted Member kikelinus's Avatar
    Join Date
    Nov 2000
    Posts
    219

    Exclamation

    I want to do something like this:

    "Hello " & Form2.txtName.Text & " how are you?"

    and this goes on until I get a message saying that the line is too long. I've tried passing to the other line but I always get a problem..(the lines become red and an alert messga pops up)....How can I go on to the other line?

  2. #2
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    You should explain a little. What line goes red , where are tou using this string??
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  3. #3
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    You should explain a little. What line goes red , where are you using this string??
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  4. #4

    Thread Starter
    Addicted Member kikelinus's Avatar
    Join Date
    Nov 2000
    Posts
    219
    It's like this.....say for example I try to go to the other line...I will do the following:

    "Hello " & Form2.txtName.Text &
    " how are you?"
    -----
    When I try to do this, I get the following message:
    "Compile error:
    Expected: expression"

  5. #5
    Hyperactive Member theman32x's Avatar
    Join Date
    May 2000
    Location
    New Jersey, USA
    Posts
    305
    "Hello " & Form2.txtName.Text &
    " how are you?"

    it will give u an error because once u put it on the second line u are not connecting with the previous

    the following should work:

    "Hello " & Form2.txtName.Text & _
    " how are you?"

    or

    "Hello " & Form2.txtName.Text &_
    " how are you?"

    i always forget if the "_" goes together or with a space

  6. #6
    Guest
    One thing you can't do though is put it in a quote:

    "Hello " & Form2.txtName.Text & " _
    how are you?"

    I believe you will get an error for that.

    But this is fine:


    "Hello " & Form2.txtName.Text & _
    " how are you?"

  7. #7

    Thread Starter
    Addicted Member kikelinus's Avatar
    Join Date
    Nov 2000
    Posts
    219
    Thanks!!

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