Link to home
Start Free TrialLog in
Avatar of comt00006
comt00006

asked on

What is the textual representation of a TAB

Hi there

I have Option Explicit ON, Option Strict On, and the reference to VB6 has been removed. How do I enter a vbTab in string.


Thanks in advance
Avatar of mmarinov
mmarinov

i don't know if there is some representation of vbTab but you can use
  more then one times to create tabs

B..M
try using "\t"
Avatar of comt00006

ASKER

Hi there

thanks for the response.

I am coding ASP.NET in VB so the   will not work. Isn't that html coding?

As for the "\t", I tried adding it like so:

strMyString = "Hi there" & "\t" & "Me name is Comatoast"

and the "\t" is represented as a string not an ascii character.
comt00006,

  is the string for a white space in the html
so to represent
This is Experts    Exchange
you have to use
"This is Experts    Exchange"

B..M
Hey that almost sounded like a good idea.

I just tried it and the output was

"This is Experts    Exchange"

the   were represented as strings.
do you encode the output ?
B..M
What do you mean by encode the outpu?
how do you try this? because i've tried this
Response.Write("This is Experts    Exchange");
and it write on the screen exactly what i've told you

B..M
I am trying to put text within a ListBox control.

You cannot use the Response object. I just tried it and my code goes like this:

lstMine.Items.Add(Response.Write("Hi there" & "   " & "Comatoast"))

This is an error without even compilling because the ListBox expects a string and does not recognize the Response.Write as a string.

Thanks though.
yes, it will cause an error
actually in listboxcontrol ( wich is rendered as html select ) i thinkg that you CAN NOT add tabs
the browse just trim the white spaces

B..M
Thanks a million mmarinov.

What about a textBox. Is there a way to output tabs?
ASKER CERTIFIED SOLUTION
Avatar of mmarinov
mmarinov

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks a million