Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old November 30th, 2004, 03:31 AM
edcac edcac is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 1 edcac User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
How to edit text documents using VB5?

How to edit texts in a document (let's say notepad)
with visual basic?

Example:

A document has the following text:

abc,123

How can i edit the 2 values with visual basic 5?

Reply With Quote
  #2  
Old November 30th, 2004, 09:56 AM
Darius Darius is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 108 Darius User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 16 m 54 sec
Reputation Power: 4
You can use notepad opening it with the shell instruction

Shell "c:\WINNT\notepad.exe " & FILENAME_WITH_PATH, vbNormalFocus

You can use the richtextbox object (use the loadfile method)

Because the data "abc,123" looks like coma separated fields of something, for such kind of data, you can use a dbgrid or MSFlex grid (but it may be too advanced).

Reply With Quote
  #3  
Old December 5th, 2004, 03:10 PM
Journeyman Journeyman is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 20 Journeyman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 19 m 18 sec
Reputation Power: 0
Quote:
Originally Posted by edcac
How to edit texts in a document (let's say notepad)
with visual basic?

Example:

A document has the following text:

abc,123

How can i edit the 2 values with visual basic 5?



You should be able to open the file then use the rplacer command:
Replace(expression, find, replacewith[, start[, count[, compare]]])

Look up replace in your VB documentation.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > How to edit text documents using VB5?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway