vbTab 
Author Message
 vbTab

Why does this not work?

strBody =   "A : " & vbTab & vbTab & str1 & VBCRLF & VBCRLF & _
                   "B : " & vbTab & vbTab & str2 & VBCRLF & _
                   "C : " & vbTab & vbTab & str3 & VBCRLF & _
                   "D : " & vbTab & & vbTab str4 & VBCRLF & _
                   "E : " & vbTab & & vbTab str5 & VBCRLF

I want strBody's result to look something like this:
A        123

B        123
C        123
D        123
E        123

But this is what I get:
A123

B123
C123
D123
E123

Regards
Lyndon



Sat, 04 Jan 2003 03:00:00 GMT  
 vbTab
Ok sorry bout the little error:
should be:

 strBody =   "A : " & vbTab & vbTab & str1 & VBCRLF & VBCRLF & _
                    "B : " & vbTab & vbTab & str2 & VBCRLF & _
                    "C : " & vbTab & vbTab & str3 & VBCRLF & _
                    "D : " & vbTab & vbTab & str4 & VBCRLF & _
                    "E : " & vbTab & vbTab & str5 & VBCRLF



Sat, 04 Jan 2003 03:00:00 GMT  
 vbTab

Why does this not work?

  strBody =   "A : " & vbTab & vbTab & str1 & VBCRLF & VBCRLF & _
                     "B : " & vbTab & vbTab & str2 & VBCRLF & _
                     "C : " & vbTab & vbTab & str3 & VBCRLF & _
                     "D : " & vbTab & vbTab & str4 & VBCRLF & _
                     "E : " & vbTab & vbTab & str5 & VBCRLF

I want strBody's result to look something like this:
A        123

B        123
C        123
D        123
E        123

But this is what I get:
A123

B123
C123
D123
E123

Regards
Lyndon



Sun, 05 Jan 2003 03:00:00 GMT  
 vbTab

Quote:

> Why does this not work?

>   strBody =   "A : " & vbTab & vbTab & str1 & VBCRLF & VBCRLF & _
>                      "B : " & vbTab & vbTab & str2 & VBCRLF & _
>                      "C : " & vbTab & vbTab & str3 & VBCRLF & _
>                      "D : " & vbTab & vbTab & str4 & VBCRLF & _
>                      "E : " & vbTab & vbTab & str5 & VBCRLF

> I want strBody's result to look something like this:
> A        123

> B        123
> C        123
> D        123
> E        123

> But this is what I get:
> A123

> B123
> C123
> D123
> E123

> Regards
> Lyndon

That's strange.  It worked for me when I cut and pasted it from your
message into a test script.  Unless you're displaying the string in a
browser, such as IE, it should work.  In general, all browsers ignore
tab characters (but they also ignore newlines???).  

If you are in an html document, you either need to enclose the text in
<PRE></PRE> tags and accept a monospace font (usually Courier),
construct a table or use a string of '&nbsp;' spaces instead of tabs (I
know it's not the same as tabs).

Tom Lavedas
-----------
http://www.pressroom.com/~tglbatch/



Sun, 05 Jan 2003 03:00:00 GMT  
 vbTab

Quote:
> That's strange.  It worked for me when I cut and pasted it from your
> message into a test script.  Unless you're displaying the string in a
> browser, such as IE, it should work.  In general, all browsers ignore
> tab characters (but they also ignore newlines???).

> If you are in an html document, you either need to enclose the text in
> <PRE></PRE> tags and accept a monospace font (usually Courier),
> construct a table or use a string of '&nbsp;' spaces instead of tabs (I
> know it's not the same as tabs).

I use it in asp to generate the body of an email message.  So the result
will
be display's in a email client like OE.


Sun, 05 Jan 2003 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. vbTab justification options?

2. Size setting for vbTab

3. Javascript and vbTab and SQLserver

4. Does JScript has something like vbTab?

5. If statement for vbTab's presence

6. vbTab export

7. vbTAB disabling

8. Please help with vbTab Export

9. vbTab not working in Excel

10. Combobox with vbTab

11. RichTextBox: Getting and setting Tab size (vbTab)

12. MSHFlexGrid -- vbTab

 

 
Powered by phpBB® Forum Software