|
-
Feb 8th, 2011, 09:48 AM
#1
Thread Starter
Addicted Member
-
Feb 8th, 2011, 10:00 AM
#2
Re: consolidating an array
You mean use one text file for all data instead of three?
How is the data being entered into each text file at the moment, if manually you could say something like,
**1**
Joe Blogss
**2**
0800 800 800
**3**
dd//mm//yy
Then you the split function, or maybe you need to keep the datas format the same as it is now in each text file?
-
Feb 8th, 2011, 10:05 AM
#3
Thread Starter
Addicted Member
Re: consolidating an array
have you looked at the program becuase your see what I mean. sorry I am not got at explaining and I am a VB6 newbie so yer..
-
Feb 8th, 2011, 11:17 AM
#4
Re: consolidating an array
Just make your own file format, eg.
Code:
John Lemon
2/3/1993
023 8054 9584
Arcthricolive ben
5/9/1992
023 8047 3293
You can then Line Input to get each line and do whatever you want with the resulting strings. There are many minor variations on this method. In an ideal world, you would probably just use XML, but I don't think it's worthwhile for you right now.
Also, often times the first line of a text file like you have lists the number of records, so you can ReDim once and be done.
The time you enjoy wasting is not wasted time.
Bertrand Russell
<- Remember to rate posts you find helpful.
-
Feb 8th, 2011, 01:36 PM
#5
Thread Starter
Addicted Member
Re: consolidating an array
 Originally Posted by jemidiah
Just make your own file format, eg.
Code:
John Lemon
2/3/1993
023 8054 9584
Arcthricolive ben
5/9/1992
023 8047 3293
You can then Line Input to get each line and do whatever you want with the resulting strings. There are many minor variations on this method. In an ideal world, you would probably just use XML, but I don't think it's worthwhile for you right now.
Also, often times the first line of a text file like you have lists the number of records, so you can ReDim once and be done.
Ops I forgot about the stupid names lol Thanks I see what I can do
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|