How did you determine that you could use Java methods within CF syntax?
Can you do a join to get the array back to a list?
TIA
Dick
On Jun 30, 2004, at 7:38 AM, Tim Blair wrote:
> > What's your way to circumvent this problem?
>
> If you're using MX, you can be a bit sneaky: because the list is an
> instance of java.lang.String, you can use the methods of that class on
> it, one of which is the split() method.��This method will split a
> string
> into an array on a given delimiter (which can be multi-character) and
> also includes empty values:
>
> <!--- normal, space delimited string --->
> <cfset myString = "this is my space delimited string">
> <cfdump var="#myString.split(" ")#">
> <!--- string with multi-char delimiter --->
> <cfset myString= "thisCDisCDmyCDotherCDdelimitedCDstring">
> <cfdump var="#myString.split("CD")#">
> <!--- comma delimited, with empty items --->
> <cfset myString= "this,is,a,,comma,,,delimited,,string">
> <cfdump var="#myString.split(",")#">
>
> HTH,
>
> Tim.
>
> --
> -------------------------------------------------------
> RAWNET LTD - Internet, New Media and ebusiness Gurus.
> WE'VE MOVED - for our new address, please visit our
> website at http://www.rawnet.com/ or call us any time
> on 0800 294 24 24.
> -------------------------------------------------------
> This message may contain information which is legally
> privileged and/or confidential.��If you are not the
> intended recipient, you are hereby notified that any
> unauthorised disclosure, copying, distribution or use
> of this information is strictly prohibited. Such
> notification notwithstanding, any comments, opinions,
> information or conclusions expressed in this message
> are those of the originator, not of rawnet limited,
> unless otherwise explicitly and independently indicated
> by an authorised representative of rawnet limited.
> -------------------------------------------------------
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

