Welcome to Dream.In.Code
Become a VB Expert!

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




Pulling data from an external file...

 
Reply to this topicStart new topic

Pulling data from an external file..., How to go about doing this?

brottmayer
6 Mar, 2007 - 02:34 PM
Post #1

D.I.C Head
**

Joined: 21 Jan, 2007
Posts: 67


My Contributions
I have an external file, that I would like to open and then also be allowed to select which line of information that I want to use within my program. For example:

This is what my external file looks like:

ASSIGN.RSM A 7:06:00 "Initialize Times"
ASSIGN.RSM B 7:25:35
etc...

I want to open up this file, and pull the data that contains A and pull in the time of "7:06:00" into TextBox1.

So I was thinking of creating a new form, that displays the files that is on the user's computer and have a radio button on the side (or textbox) selecting which data that the person wants. For example:

Take for example, I have my main form with the TextBox1 awaiting the information being pulled from this external file. My open form, displays a list of files on the computer and on the other side displaying what is in this folder, much like that of a windows explorer. Then they would select the text file that they want, and then before clicking on the Open button, there is a group of radio buttons saying A, B, and etc... Then, when the user selects one of these radio buttons, and selects a file, and then clicks on open, TextBox1 on the main form will appear the data that was selected from the external file and from the selected radio button.

How would I go about doing this?
User is offlineProfile CardPM
+Quote Post

KeyWiz
RE: Pulling Data From An External File...
7 Mar, 2007 - 10:46 AM
Post #2

D.I.C Regular
Group Icon

Joined: 26 Oct, 2006
Posts: 428


Dream Kudos: 125
My Contributions
Create a Form
Add the objects you described
Write Code based on Clicks of the correct objects
When the radio button is clicked, change the list to include only those files with both "A" and your searched for time.
that's it!
User is offlineProfile CardPM
+Quote Post

brottmayer
RE: Pulling Data From An External File...
7 Mar, 2007 - 10:18 PM
Post #3

D.I.C Head
**

Joined: 21 Jan, 2007
Posts: 67


My Contributions
QUOTE(KeyWiz @ 7 Mar, 2007 - 11:46 AM) *

Create a Form
Add the objects you described
Write Code based on Clicks of the correct objects
When the radio button is clicked, change the list to include only those files with both "A" and your searched for time.
that's it!


I understand that KeyWiz, is there some coding that you can start me off with so that I understand that it is used to pull out this specific portion of the data from this external file? Thanks.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/4/08 03:05PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month