Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > .txt formatted text


Reply
 
Thread Tools Display Modes
  #1  
Old 02-19-2002, 12:15 PM
sethindeed's Avatar
sethindeed sethindeed is offline
Contributor
 
Join Date: Mar 2001
Location: Montreal Canada
Posts: 715
Default .txt formatted text


Hi !
I oftenly store some text in a textarray, then save it into a text file.
I do the same with web pages generated throughout VB. It is quite easy in html to format the page as I wish (TD, FONT, COLOR).
But my question here is " Is it possible to format a txt file ?"
Suppose I want to have my headers in Bold, how do I define it in my array ?
I also notice that chr(13) and chr(10) for carriage return and tabs does not work when saving to a txt file.
Any help would be appreciated
Reply With Quote
  #2  
Old 02-19-2002, 12:24 PM
loquin's Avatar
loquin loquin is offline
Google Hound

Retired Moderator
* Guru *
 
Join Date: Nov 2001
Location: Arizona, USA
Posts: 12,386
Default

A text file is just that - Text. No formatting of characters is possible, unless you decide, say, to use the high-order bit for boldface, at which point, it's no longer a text file, but is a propriatory format.

use the constant vbCRLF for the end-of-line (it is actually two characters - chr(10) and chr(13))


The tab is actually chr(9) - but, it's a good idea to use the vbTab constant.
__________________
Lou
"I have my standards. They may be low, but I have them!" ~ Bette Middler
"It's a book about a Spanish guy called Manual. You should read it." ~ Dilbert
"To understand recursion, you must first understand recursion." ~ unknown
Reply With Quote
  #3  
Old 02-19-2002, 12:29 PM
sethindeed's Avatar
sethindeed sethindeed is offline
Contributor
 
Join Date: Mar 2001
Location: Montreal Canada
Posts: 715
Default

Actually, I am writing directly into an Outlook thread.
Does that means that Outlook will handle some formatted expressions ( i.e RichText expression ) ?
Reply With Quote
  #4  
Old 02-20-2002, 03:04 AM
GREK
Guest
 
Posts: n/a
Default

couldn't you use a rich text box add put in some formatting controls
i've never used one so i couldn't tell you how to
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

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