Results 1 to 3 of 3

Thread: Split Function

  1. #1
    Join Date
    Dec 2004
    Location
    Malaysia
    Posts
    4

    Unanswered: Split Function

    Hi everyone,

    How to read and seperate the string?
    code1;code2;code3


    When I did this
    <% mystring = ("code1;code2;code3") %>
    <% myarray = Split(mystring) %>
    <% =myarray(0) %>


    The results show
    ***
    code1;code2;code3


    What is the function to show only like this?
    ***
    code1

  2. #2
    Join Date
    Mar 2003
    Location
    Atlanta, GA
    Posts
    191
    You have to specify the delimiter for the split function... like this:

    Split(mystring,";")

    Tim
    Tim

  3. #3
    Join Date
    Jun 2003
    Location
    USA
    Posts
    1,032
    And here's a related reference:

    Parsing with join and split - 5/9/1999
    http://www.4guysfromrolla.com/webtech/050999-1.shtml
    J. Paul Schmidt, Freelance Web and Database Developer
    www.Bullschmidt.com
    Access Database Sample, Web Database Sample, ASP Design Tips

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •