Well I'm writting a way for users to do a quick batch import from another
system to our web based one.
Assuming that most systems can export to CSV I'm putting together a
prototype. Works well but, I got a request for multiple chracter delimiters
and then found out that cfloop treats them as separate delimiters.
Got it working now thanks to the Strip UDF !
I agree with you but, we need to allow a user to import data from a source
that we are not sure about. I'd say the likelyhood is that data files will
be comma delimited but, I'm trying to build a robust system to allow for
other values.
Darren
-----Original Message-----
From: Hugo Ahlenius [mailto:[EMAIL PROTECTED]
Sent: 13 January 2004 08:50
To: CF-Talk
Subject: RE: X separated values.
Why are you doing this in first place? I think the best choice, if there
is a risk that the separator will be present in the string, is to use a
non-printing character.
/H.
-------------------------------------------------------------
Hugo Ahlenius E-Mail: [EMAIL PROTECTED]
Project Officer Phone: +46 8 230460
UNEP GRID-Arendal Fax: +46 8 230441
Stockholm Office Mobile: +46 733 467111
WWW: http://www.grida.no
-------------------------------------------------------------
| -----Original Message-----
| From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
| Sent: Monday, January 12, 2004 15:51
| To: CF-Talk
| Subject: X separated values.
|
| Just a quicky,
|
| I'm looping over a list and specifying a custom delimiter, I
| want to be able to allow the user to specify a delimiter of
| >1 characters however CF seems to take each of these
| characters as a separate delimiter. e.g.
| delimiters="ab" looks separates the list at an "a" or a "b"
| and not "ab".
|
| Is there an quick easy why to specify that the cfloop should
| match the entire value not each character individually ?
|
| Cheers,
|
| Darren
|
|
|
|
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

