Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > tab string character


Reply
 
Thread Tools Display Modes
  #1  
Old 03-01-2004, 06:04 AM
jagdipa jagdipa is offline
Freshman
 
Join Date: Feb 2004
Location: Manchester, UK
Posts: 36
Default tab string character


Is there a tab string character?
i.e. I want something like

"date: " & TAB & "3/3/23" & vbNewLine & _
"time: " & TAB & "4:34"

Jagdip
__________________
In an insane world, the only sane choice is the insane one.
Reply With Quote
  #2  
Old 03-01-2004, 06:07 AM
Peperl's Avatar
Peperl Peperl is offline
Senior Contributor
 
Join Date: Apr 2003
Location: Cartagena, Spain
Posts: 1,371
Default

I think TAB Ascii code is the number nine. Try to declare it as a constant

Code:
Public const MyTAB as string = CHR$(9)

and try
__________________
Pri Oh Persia
Reply With Quote
  #3  
Old 03-01-2004, 06:14 AM
John's Avatar
John John is offline
Bit Flipper
 
Join Date: Feb 2002
Location: The Inner Loop
Posts: 5,550
Default

The better way is to use the built in constant vbTab.

These can be found by looking in the object browser or by typing keycodeconstants followed by a "." which will bring up the whole list.
__________________
Subclassing|Magnetic Forms|Operator Overloading (VB2K5)|QuickSnip.NET

"These Patriot playoff wins are like Ray Charles songs, Nantucket sunsets, and hot fudge sundaes. Each one is better than the last." - Dan Shaughnessy
Reply With Quote
  #4  
Old 03-01-2004, 06:43 AM
Dave124 Dave124 is offline
Restricted
 
Join Date: Feb 2004
Posts: 52
Default

a good way to see what keys what in ascii is to use msgbox.

for example

msgbox (vbkeyspace)

this would display 32 in the msgbox which is the ascii for it.

another example

msgbox (vbkeyup)

this would dsiplay 38 in the msgbox.

using msgbox is a good way of getting tons of info thing's.

experiment!
Reply With Quote
  #5  
Old 03-01-2004, 06:51 AM
John's Avatar
John John is offline
Bit Flipper
 
Join Date: Feb 2002
Location: The Inner Loop
Posts: 5,550
Default

Not as good as the immediate window would be.

Ctrl+G
Print asc(vbkeytab)
57

__________________
Subclassing|Magnetic Forms|Operator Overloading (VB2K5)|QuickSnip.NET

"These Patriot playoff wins are like Ray Charles songs, Nantucket sunsets, and hot fudge sundaes. Each one is better than the last." - Dan Shaughnessy
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem loading data paidelr File I/O and Registry 5 02-29-2004 08:29 PM
Deleting a file in dat question ? murphys General 5 11-06-2002 08:34 PM
Shareware Registry Protection Technigue karachi999 General 2 01-21-2002 02:40 PM
Loop to format file kingesk General 2 09-10-2000 05:01 PM
File format problem kingesk General 1 09-08-2000 04:52 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->