spaces needed in concatenation

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • barry

    #1

    spaces needed in concatenation

    Below is a piece of code in which I am trying to concatenate two items into
    an arraylist. I have separated them with a " " but when I increase this to
    say " " only one space is allowed. I assume the arraylist class is
    removing the extra spaces which I would like to have for clarity. Is there a
    method or property to do this.

    arr.Add(objcust .ChildNodes(t). ChildNodes.Item (0).InnerText & " " & _

    objcust.ChildNo des(t).Attribut es.Item(0).Valu e)



    thanks


  • Cor Ligthert

    #2
    Re: spaces needed in concatenation

    Barry,

    Do you have Option Strict On in top of your program?

    Cor


    Comment

    • Andrew Morton

      #3
      Re: spaces needed in concatenation

      > Below is a piece of code in which I am trying to concatenate two items[color=blue]
      > into
      > an arraylist. I have separated them with a " " but when I increase this
      > to
      > say " " only one space is allowed.[/color]

      By "allowed", do you mean you get an error if you add more than one space or
      do you mean that you only see one space displayed?

      Remember that html displayed in a browser collapses white space to one
      space. To avoid that, use the   html entity.

      Andrew


      Comment

      Working...