|
-
Apr 25th, 2002, 11:54 AM
#1
Thread Starter
Fanatic Member
The final issue!
Ok, my program is done. I just need to resolve one last thing. I have a lot of my files named like this:
"Vaughn, Stevie Ray - Life By The Drop"
I have code that splits up the Artist and song already. So I wrote code to check for a comma in the Artist string. If the comma exists, It changes the Artist string from:
"Vaughn, Stevie Ray" TO "Stevie Ray Vaughn"
Problem is it looks like this: "Stevie Ray___________Vaughn"
How can I fix this? It should read: "Stevie Ray Vaughn"
Here's my code:
VB Code:
If InStr(artist, ",") > 0 Then
temp2 = Split(artist, ",")
artist = temp2(1) & temp2(0)
End If
-
Apr 25th, 2002, 11:56 AM
#2
umm is it just me..or dont they both look the same??
-
Apr 25th, 2002, 11:57 AM
#3
Not NoteMe
VB Code:
artist = Replace(artist,",","")
Quotes:
"I am getting better then you guys.." NoteMe, on his leet english skills.
"And I am going to meat her again later on tonight." NoteMe
"I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
"my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
Have I helped you? Please Rate my posts. 
-
Apr 25th, 2002, 12:00 PM
#4
Thread Starter
Fanatic Member
Ummm..
I don't understand that replace statement there. I have use the array values from the split
-
Apr 25th, 2002, 12:02 PM
#5
Are the underscores supposed to be spaces?
If so then just change this:
VB Code:
artist = temp2(1) & temp2(0)
to:
VB Code:
artist = Trim(temp2(1)) & " " & Trim(temp2(0))
If they are actually underscores then use this:
VB Code:
artist=Replace(artist,"_"," ")
artist = Trim(temp2(1)) & " " & Trim(temp2(0))
-
Apr 25th, 2002, 12:03 PM
#6
Not NoteMe
The replace function replaces one charactor in a string, with another. I used to to replace the comma (,) in your string, with Null (thus removing it). You don't need to do a split.
Quotes:
"I am getting better then you guys.." NoteMe, on his leet english skills.
"And I am going to meat her again later on tonight." NoteMe
"I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
"my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
Have I helped you? Please Rate my posts. 
-
Apr 25th, 2002, 12:04 PM
#7
But then the name is out of order SLH. He split it because he is switching the order.
-
Apr 25th, 2002, 12:04 PM
#8
Thread Starter
Fanatic Member
yeah, they're spaces
But when you post, the forum takes out spaces so I used underscores to represent them
-
Apr 25th, 2002, 12:08 PM
#9
Thread Starter
Fanatic Member
Thanks
Thanks for the help. Now I can tag all of my 1685 mp3s in 5 min.
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
|