Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tabs - Visual Basic 6.0

Status
Not open for further replies.

Danielvb

Programmer
Oct 8, 2002
34
US
Hello team

Please I need help. I am creating a text file that has tabs delimeter. Which command can I use to print tabs


for example:

print#f, "James" 0100 04/05/2003 45.2

if you see there is not comma delimeters but must insert a tab in between the info

Thanks for your help

Daniel
vbbeginner@aol.com
Hollywood,FL
 
Like this

print#f, "James" & vbTab & "0100" & vbTab & "04/05/2003" & vbTab & "45.2" I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson
 
You'll have to concatenate vbTab (chr(9)) in between the elements of your statement. Be sure to also enclose the date field within quotes (like your name field) or it will be evaluated as a mathematical expression before the write.

Mark
 
Thanks alot to all. Your time is very appreciate

Daniel
Hollywood, Fl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top