Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 132,650 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,146 people online right now. Registration is fast and FREE... Join Now!




Reading A Wordpad File In Vb

 
Reply to this topicStart new topic

Reading A Wordpad File In Vb

Shy Stan
post 20 Aug, 2008 - 12:54 PM
Post #1


New D.I.C Head

*
Joined: 20 Aug, 2008
Posts: 1

I need to read a wordpad file and parse data for mailing labels. Can someome help me with this?
User is offlineProfile CardPM

Go to the top of the page

PsychoCoder
post 20 Aug, 2008 - 12:58 PM
Post #2


using DIC.Core;

Group Icon
Joined: 26 Jul, 2007
Posts: 8,933



Thanked 118 times

Dream Kudos: 8525

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions


Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.

Are you doing this in Visual Basic 6 or a different version?
User is offlineProfile CardPM

Go to the top of the page

bdunlap
post 7 Sep, 2008 - 09:14 PM
Post #3


New D.I.C Head

*
Joined: 7 Sep, 2008
Posts: 1

QUOTE(Shy Stan @ 20 Aug, 2008 - 01:54 PM) *

I need to read a wordpad file and parse data for mailing labels. Can someome help me with this?


I'd like to be able to do this, too. Although this is a pet project as I'm not in school and probably won't ever go back to college. My project is for my dad. He listens to the ham radio and would like a program that he can keep track of the call signs and info regarding his listening to the radio. I have yet to setup a full program as I need to know how to save info to a text file and recall it. I guess this would be considered a database program, just simplified.

I have the huge book "Mastering Visual Basic 6.0" but have yet to find how to write to a file, etc.

Any help would be appreciated.

Thank you,
Brittany Dunlap

EDIT__ This is all I've got so far as I need to know how to write to a file and then search a file and show contents of file in appropriate labels.

CODE
Private Sub cmdAdd_Click()
lblAdd.Caption = "Entry added."
End Sub

Private Sub cmdReset_Click()
txtCallSign.text = ""
txtName.text = ""
txtCountry.text = ""
txtFreqStart.text = ""
txtFreqEnd.text = ""
txtFreq.text = ""
End Sub

Private Sub cmdSearch_Click()
Dim varCallSign As String
Dim varName As String
Dim varCountry As String
Dim varFreqStart As String
Dim varFreqEnd As String
Dim varFreq As String
Dim varQRZ As Boolean
Dim varUTC As String

varCallSign = txtCallSign.text
varName = txtName.text
varCountry = txtCountry.text
varFreqStart = txtFreqStart.text
varFreqEnd = txtFreqEnd.text
varFreq = txtFreq.text
varUTC = txtUTC.text



End Sub

Private Sub Form_Load()
txtCallSign.text = ""
txtName.text = ""
txtCountry.text = ""
txtFreq.text = ""
txtFreqStart.text = ""
txtFreqEnd.text = ""
txtUTC.text = ""
End Sub


This post has been edited by bdunlap: 7 Sep, 2008 - 10:13 PM


Attached thumbnail(s)
Attached Image
User is offlineProfile CardPM

Go to the top of the page

sam_benne
post 8 Sep, 2008 - 02:06 AM
Post #4


D.I.C Regular

Group Icon
Joined: 16 Jan, 2008
Posts: 289



Thanked 1 times

Dream Kudos: 400
My Contributions


I have created a tutorial in here on how to save to a text file check the titurial section.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 05:11AM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month