names=split("Tommy,{*filter*}, Harry, Sally", ", ")
for i=0 to UBound(names)
wscript.echo names(i)
next
=-=-=
Steve
-=-=-
Quote:
> Thank you very much, Steve, but I didn't state my problem completely.
> How do I do it if the number of commas varies?
> ex:
> One user enters "Tom,{*filter*}, Harry" and another user enters "Thelma,
> Louise" or any number of names. I need to put these names into an
> array.
> Any and all help is very mush appreciated.
> > names=split("Tom,{*filter*}, Harry", ", ")
> > for i=0 to 2
> > wscript.echo names(i)
> > next
> > =-=-=
> > Steve
> > -=-=-
> > > How do I break the string "Tom,{*filter*}, Harry" into three seperate
> > > variables: "Tom", "Dick" and "Harry"
> > > ?
> > > Sent via Deja.com http://www.*-*-*.com/
> > > Before you buy.
> Sent via Deja.com http://www.*-*-*.com/
> Before you buy.