Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-12-2004, 07:07 PM   PM User | #1
JSlime
New Coder

 
Join Date: Dec 2003
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
JSlime is an unknown quantity at this point
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
JSlime is offline   Reply With Quote
Old 01-12-2004, 07:11 PM   PM User | #2
Roy Sinclair
Senior Coder

 
Join Date: Jun 2002
Location: Wichita
Posts: 3,880
Thanks: 0
Thanked 0 Times in 0 Posts
Roy Sinclair will become famous soon enough
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.
Roy Sinclair is offline   Reply With Quote
Old 01-12-2004, 09:02 PM   PM User | #3
JSlime
New Coder

 
Join Date: Dec 2003
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
JSlime is an unknown quantity at this point
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
JSlime is offline   Reply With Quote
Old 01-13-2004, 05:30 AM   PM User | #4
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
The title of this thread is misleading.
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv is offline   Reply With Quote
Old 01-13-2004, 05:14 PM   PM User | #5
JSlime
New Coder

 
Join Date: Dec 2003
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
JSlime is an unknown quantity at this point
Quote:
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
JSlime is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:30 AM.


Advertisement
Log in to turn off these ads.