Ricki, based on your sample it looks as though you can use the Split
function.

  arrRace = Split(strReturn, ", ", -1, vbTextCompare)

where strReturn is "African, African - American, Aleutian, American
Indian, Asian, Bangladeshi, Bhutanese, Brazilian"

HTH

-----Original Message-----
From: Ricki Williams [mailto:[EMAIL PROTECTED]] 
Sent: Monday, September 02, 2002 2:37 PM
To: ActiveServerPages
Subject: convert string to array


I know this has to be simple, but I'm not finding the answer and I've
never tried it before.  I have a list box where they can make multiple
selections. A sample return from the box is: African, African -
American, Aleutian, American Indian, Asian, Bangladeshi, Bhutanese,
Brazilian

My question is, how do I loop through this string and change it into an
array so I can loop through it for later processing?  Or should I even
convert it to an array if I can loop through the string just as easily?
If that's the case, then I'm still back to - How do I loop through a
string?

thanks,
Ricki


---
You are currently subscribed to activeserverpages as:
[EMAIL PROTECTED] To unsubscribe send a blank email to
%%email.unsub%%



---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to