...

View Full Version : sorting an array...



JSlime
01-12-2004, 07:07 PM
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?




join("\r",myArray());



Thanks for the help.

~JSlime

Roy Sinclair
01-12-2004, 07:11 PM
myArray.join('\r');


"join" is a method of the array object.

JSlime
01-12-2004, 09:02 PM
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

glenngv
01-13-2004, 05:30 AM
The title of this thread is misleading. :D

JSlime
01-13-2004, 05:14 PM
Originally posted by glenngv
The title of this thread is misleading. :D


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

Sorry.. heh...

~JSlime



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum