Page 1 of 1 1
Topic Options
#81401 - 2002-11-27 11:40 PM Join() Function Enhancement
Lee Wilmott Offline
Starting to like KiXtart

Registered: 2002-09-17
Posts: 106
Loc: Bristol, UK
I would like to see an optional third parameter in the Join() function.

This could specify the number of elements, from the given array, that should be concatenated into the string.

Not only would I find this very helpful indeed, but it would also work similarly to its sister function Split().

Lee

Top
#81402 - 2002-12-20 12:11 AM Re: Join() Function Enhancement
Mordac85 Offline
Fresh Scripter

Registered: 2000-02-16
Posts: 34
Loc: Urbana, OH, USA
Excellent idea! I'm working around a similar problem now. Maybe an option to define the starting and ending element#?
_________________________
~Glenn

==============================
Deadlines take their toll.
Please have exact change.

Top
#81403 - 2002-12-20 12:13 AM Re: Join() Function Enhancement
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22303
Loc: OK
oh, this wasn't answered yet.

check out: http://www.scriptlogic.com/KiXtart/DevReport.asp

it's in 4.20!
_________________________
!

download KiXnet

Top
#81404 - 2002-12-20 05:04 AM Re: Join() Function Enhancement
Anonymous
Unregistered


Yes, excellent idea. I believe it was originally suggested via the JOIN() UDF in January, 2002.

here is the UDF:

http://www.scriptlogic.com/Kixtart/FunctionLibrary_ViewFunction.aspx?ID=Join

-Brian

Top
#81405 - 2002-12-20 05:10 AM Re: Join() Function Enhancement
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Personally, I think that this enhancment would not be necessary if we could get an ARRAY slice instead. The slice would permit you to JOIN the third through sixth elements of an array not just elements zero to two.

The old JOIN would work just fine.

$a = Join($Array[3-6], delimiter)

reference:Array Slice

[ 20. December 2002, 05:11: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#81406 - 2002-12-20 05:12 AM Re: Join() Function Enhancement
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22303
Loc: OK
hoby, what is done, is done... right?
_________________________
!

download KiXnet

Top
#81407 - 2002-12-20 05:13 AM Re: Join() Function Enhancement
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Just voicing MHO. [Smile]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
Page 1 of 1 1


Moderator:  Lonkero, ShaneEP, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 164 anonymous users online.
Newest Members
motkomeri, NHUVY, michaeltoan, scullsol, phanhuyen345
17565 Registered Users

Generated in 0.03 seconds in which 0.011 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org