string problem

Results 1 to 2 of 2

Thread: string problem

  1. #1
    Join Date
    Dec 1969

    Default string problem

    I have this string, it can contain one or many word separted with a ",".<BR><BR>Id like to place this string in an array, thats easy, array = split(String, ",") but what do I do when there is only one work in string (no "," then).<BR><BR>Thanks for any input<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default No problem

    myA=split("test",",")<BR>alert (myA(0)) ....... will still give you the string "test"<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