parsing a variable

Results 1 to 4 of 4

Thread: parsing a variable

  1. #1
    Jack Johnson Guest

    Default parsing a variable

    I am receiving a variable that can have anywhere from 1 to 5 values in it, separated by a comma and a space. What would be the best way to parse out this information? Thanks

  2. #2
    Jack Johnson Guest

    Default sorry about the repost

    Sorry about the repost, my bad.

  3. #3
    Eddie Campbell Guest

    Default RE: parsing a variable

    Use Split(). Have a look in the VbScript reference on the left of this site.

  4. #4
    Join Date
    Dec 1969

    Default RE: parsing a variable

    I think u can use the split function, this will parse the variable into a suitable array:<BR><BR>variable = "a, b, c, d, e"<BR>aryVariable = Split(Variable,", ",-1) will produce aryVariable(a,b,c,d,e)!<BR><BR><BR><BR>

Posting Permissions

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