Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Dec 2003
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    sorting an array...

    Hello everyone. I've got an array with over 285 entries in it, and l want to view the entire contents of the array, easily.

    I want to separate each string in the array with the (\r) carriage return symbol.

    How would this be done using the join(separator) method?

    Something like?

    Code:
    join("\r",myArray());
    Thanks for the help.

    ~JSlime

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    myArray.join('\r');
    "join" is a method of the array object.
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #3
    New Coder
    Join Date
    Dec 2003
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Fantastic!! Thank you very much... l couldn't figure out how it was supposed to be. You've single handely relived my aching head, with your javascript wisdom.

    ~JSlime

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,950
    Thanks
    0
    Thanked 236 Times in 233 Posts
    The title of this thread is misleading.

  • #5
    New Coder
    Join Date
    Dec 2003
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by glenngv
    The title of this thread is misleading.

    LoL, well l apologize glenngv, l didn't know exactly how my inquiry should have been worded.

    Sorry.. heh...

    ~JSlime


  •  

    Posting Permissions

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