Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NASTY String Problem

Status
Not open for further replies.

damarious

Programmer
Joined
Oct 31, 2000
Messages
4
Location
US
I've got the following string:
"TTTT","TTTT","BQCI077134.txt","BQCI076917.txt","BQCI076701.txt","BQCI076485.txt","BQCI076271.txt","BQCI076058.txt","BQCI075848.txt","BQCI075637.txt","BQCI075428.txt","BQCI075220.txt","11/10/00","11/09/00","11/08/00","11/07/00","11/06/00","11/03/00","11/02/00","11/01/00","10/31/00","10/30/00"

I've got to pull out the last date (in this case, "10/30/00") and insert a string containing the current date inbetween the last text file and the first date.

THEN (It ain't over yet)

I have to remove the last textfile name and insert a new one between the last "TTTT" and the first text file.

I've really got no idea where to go with this. Should I be putting the string into an array and then splicing in the data, then reassmbling it? I need some direction. Thanks!
 
yes, splitting this into an array would probably be a good idea.
 
I think I got it. I'm just splitting it, shifting everything down one and inserting the appropriate values. I guees it wasn't as hard as I thought.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top