spaces needed in concatenation

  • Thread starter Thread starter barry
  • Start date Start date
B

barry

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.ChildNodes(t).Attributes.Item(0).Value)



thanks
 
Barry,

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

Cor
 
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.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top