
February 21st, 2003, 09:53 AM
|
|
Registered User
|
|
Join Date: Feb 2003
Posts: 12
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
string conversion?
I have a question, that I can't seem to find an anser to. I'm relatively new to ASP, so there is probably a really simple answer, but I'll let you be the judge.<br><br>I think I remember seeing something in VB that you can use the mid() function to get a section of a string given a start point (letter to start with) and the number of letters to take.<br><br>I am trying to find a way in vbscript to do something similar. I have a variable (a string that comes from a database) that will have a "list" of image files that are associated with a particular record in the database.<br><br>For example:<br><br>pics = "pic01.jpg, pic06.jpg ,pic17.jpg ,pic19.jpg ,pic22.jpg"<br><br>and what I want to do is find a way to turn this string into:<br><br>pic1 = "pic01.jpg"<br>pic2 = "pic06.jpg"<br>pic3 = "pic17.jpg"<br>pic4 = "pic19.jpg"<br>pic4 = "pic22.jpg"<br><br>I am starting with a virtually empty database (adding records as I go) so if any modifications need to be made to the format, that is not a problem. Also, I'm open to any suggestions of other ways to acomplishing this. It seems like there should be an easier way to do this.<br><br>Thanks,<br>Ryan
|