Hi Mike,

> I am trying to split a filename up, using "_" as a delimiter. 
> I want it to only split at the first underscore, but some of
> the files have more then one. Is there a way to get it to
> stop after the first one?

Yes, use the invisible third parameter to tell it how many elements your
array is permitted to have:
  myArray = Split( myString, "_", 2 )

Regards,

Shawn K. Hall
http://12PointDesign.com/
http://ReliableAnswers.com/




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/17folB/TM
--------------------------------------------------------------------~-> 

---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [email protected]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to