RE: Delimiters
> are you suggesting setting DELIMITER="***" will break up a > string by *, **, AND ***? Not exactly. What I'm suggesting (and it's more than a suggestion, it's a statement) is that setting DELIMITER="***" simply means that any asterisk will be used as a delimiter - and duplicates will be ignored. Here's some sample code: List parameter test #i# #i# Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Delimiters
are you suggesting setting DELIMITER="***" will break up a string by *, **, AND ***? -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 6:50 AM To: CF-Talk Subject: RE: Delimiters > > Besides commas and pipes, what are the next best choices > > for delimiting lists? > > use a series of hard to find types. > something like: "~%~" > > this will guarntee NO ONE will type it. There are two problems with this. First, in CF, you can't really use multiple characters as a single delimiter very easily. All of the tags and functions that allow list manipulation accept a delimiters attribute or argument, but if you specify multiple characters in that, it just means that ANY ONE of those characters will be accepted as a delimiter! Second, anything that can be typed in, will be typed in by somebody, given a large enough sample of people. If you're building the lists yourself, I'd recommend using a non-printable ASCII character as the delimiter. I usually use Chr(7) - the bell character. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Delimiters
> > Besides commas and pipes, what are the next best choices > > for delimiting lists? > > use a series of hard to find types. > something like: "~%~" > > this will guarntee NO ONE will type it. There are two problems with this. First, in CF, you can't really use multiple characters as a single delimiter very easily. All of the tags and functions that allow list manipulation accept a delimiters attribute or argument, but if you specify multiple characters in that, it just means that ANY ONE of those characters will be accepted as a delimiter! Second, anything that can be typed in, will be typed in by somebody, given a large enough sample of people. If you're building the lists yourself, I'd recommend using a non-printable ASCII character as the delimiter. I usually use Chr(7) - the bell character. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Delimiters
tildes ( ~ ) are not bad. Thank You, Peter Peter J. MacDonald II Creative Computing, Inc. 100 Middle Street Lincoln, RI 02865 Phone: 401.727.0183 x123 Fax: 401.727.4998 Portable: 401.965.3661 E-MAIL: [EMAIL PROTECTED] Web Page: www.creatcomp.com -Original Message- From: Dave Hannum [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001 8:55 AM To: CF-Talk Subject: Delimiters Besides commas and pipes, what are the next best choices for delimiting lists? thanks, Dave === David R Hannum Ohio University Web Analyst/Programmer (740) 597-2524 [EMAIL PROTECTED] ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Delimiters
chr(7) Justin >>-Original Message- >>From: Michael Lugassy [mailto:[EMAIL PROTECTED]] >>Sent: Tuesday, April 17, 2001 3:11 PM >>To: CF-Talk >>Subject: Re: Delimiters >> >> >>use a series of hard to find types. >>something like: "~%~" >> >>this will guarntee NO ONE will type it. >> >>- Original Message - >>From: "Dave Hannum" <[EMAIL PROTECTED]> >>To: "CF-Talk" <[EMAIL PROTECTED]> >>Sent: Tuesday, April 17, 2001 2:54 PM >>Subject: Delimiters >> >> >>> Besides commas and pipes, what are the next best choices for delimiting >>> lists? >>> >>> thanks, >>> Dave >>> >>> >>> === >>> David R Hannum >>> Ohio University >>> Web Analyst/Programmer >>> (740) 597-2524 >>> [EMAIL PROTECTED] >>> >>> >>> >> ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Delimiters
At 03:11 PM 4/17/2001, you wrote: >use a series of hard to find types. >something like: "~%~" I think a sequence of characters is interpreted as a sequence of different possible delimiters, rather than a single delimiter comprising of a sequence of characters. Might be wrong, but I'm sure I ran into this a few years ago >this will guarntee NO ONE will type it. > >- Original Message - >From: "Dave Hannum" <[EMAIL PROTECTED]> >To: "CF-Talk" <[EMAIL PROTECTED]> >Sent: Tuesday, April 17, 2001 2:54 PM >Subject: Delimiters > > > > Besides commas and pipes, what are the next best choices for delimiting > > lists? > > > > thanks, > > Dave > > > > > > === > > David R Hannum > > Ohio University > > Web Analyst/Programmer > > (740) 597-2524 > > [EMAIL PROTECTED] > > > > > > > ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Delimiters
unprintable US-ASCII control characters, chr(30) for example At 01:54 PM 4/17/2001, you wrote: >Besides commas and pipes, what are the next best choices for delimiting >lists? > >thanks, >Dave > > >=== >David R Hannum >Ohio University >Web Analyst/Programmer >(740) 597-2524 >[EMAIL PROTECTED] > > > ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Delimiters
A while back on this list Dave Watts suggested using a bell (chr(7), or Cntl-G for the more old school) for a delimiter, since it's a non-printable. I've used it ever since and saved myself a lot of headache. [Apologies if I'm crediting the wrong source here] Michael Caulfield -Original Message- From: Dave Hannum [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001 7:55 AM To: CF-Talk Subject: Delimiters Besides commas and pipes, what are the next best choices for delimiting lists? thanks, Dave === David R Hannum Ohio University Web Analyst/Programmer (740) 597-2524 [EMAIL PROTECTED] ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Delimiters
Here is Mr. Watts suggestion which I have used extensively and had no problems with. >"I typically use the ASCII bell character, CHR 7, for this. I've never had a >problem yet, but maybe I'm just lucky." >Dave Watts, CTO, Fig Leaf Software Chris -- Chris Lomvardias [EMAIL PROTECTED] Syscom, Inc. 400 E. Pratt Street, Suite 300 Baltimore, MD 21202 (410)539-3737 x1722 voice (410)539-7302 fax [EMAIL PROTECTED] (pager via email) http://www.syscom.com/ -- -Original Message- From: Dave Hannum [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001 8:55 AM To: CF-Talk Subject: Delimiters Besides commas and pipes, what are the next best choices for delimiting lists? thanks, Dave === David R Hannum Ohio University Web Analyst/Programmer (740) 597-2524 [EMAIL PROTECTED] ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Delimiters
use a series of hard to find types. something like: "~%~" this will guarntee NO ONE will type it. - Original Message - From: "Dave Hannum" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, April 17, 2001 2:54 PM Subject: Delimiters > Besides commas and pipes, what are the next best choices for delimiting > lists? > > thanks, > Dave > > > === > David R Hannum > Ohio University > Web Analyst/Programmer > (740) 597-2524 > [EMAIL PROTECTED] > > > ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Delimiters...Thanks all
The ListGetAT did what I needed it to do I'm pretty much finished with my first fusebox / module app thanks again... ethan - Original Message - From: "Ethan Rosch" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, February 16, 2001 5:25 PM Subject: Re: Delimiters... > I think this is the right track... > > here's my problem... > > I'm calling a module > >Type="Update" > UploadFields="ProductionImage,ProductionClip" > nameconflict="MakeUnique" > SavePath="D:\FOUREYES\WEBDEV\foureyesweb.com\test\Uploads\Productions\" > dbtype="odbc" > DSN="test" > Table="Productions" > RecordID_Name="ProductionID" > RecordID="#RecordID#"> > > I want to add the upload type in this someplace such that the upload field > has a corresponding mime type. > > ex > > UploadFields="ProductionImage;image/jpeg , ProductionClip;application/rm" > > what I'm basically getting is a list within a list? > > If I then loop over the fields > > > > can i do the following? > > > > > > > If I can do this, I'm a happy dude! > > Thanks all, > > Ethan > > > > > > > > > > > > > > > > > > > - Original Message - > From: "Howie Hamlin" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Friday, February 16, 2001 4:53 PM > Subject: Re: Delimiters... > > > > Try the listgetat() function. > > > > Regards, > > > > Howie Hamlin - inFusion Project Manager > > On-Line Data Solutions, Inc. > > www.CoolFusion.com > > 631-737-4668 x101 > > inFusion Mail Server (iMS) - the World's most configurable mail server > > Get your free copy of iMS POST-SE Server from CoolFusion! > > > > - Original Message - > > From: "Ethan Rosch" <[EMAIL PROTECTED]> > > To: "CF-Talk" <[EMAIL PROTECTED]> > > Sent: Friday, February 16, 2001 4:20 PM > > Subject: Delimiters... > > > > > > > Hi all > > > > > > Is there a command similar to Left(string, count) that is > > > > > > DelemiterLeft(String,Delimeter) > > > DelemiterRight(String, Delimeter) > > > > > > such that if I was to get a variable like > > > > > > Name = Toohey,Elton > > > > > > I could do > > > > > > > > > > > #LastName > > > > > > would give me > > > > > > Toohey > > > > > > ? > > > > > > thanks... > > > > > > ethan > > > > > > > > > > > > - Original Message - > > > From: "Ethan Rosch" <[EMAIL PROTECTED]> > > > To: "Fusebox" <[EMAIL PROTECTED]> > > > Sent: Friday, February 16, 2001 3:20 PM > > > Subject: Re: modules, loops, and fun! > > > > > > > > > > Hi Douglas...thanks for the tip... > > > > > > > > I still think I need to pass my fields as I will be uploading/deleting > > > files > > > > and don't want to be running my actions on every field. Perhaps I > could > > > > just do a test for "://". > > > > > > > > the evaluate() was what I was looking for. > > > > > > > > e > > > > > > > > - Original Message - > > > > From: "Douglas Smith" <[EMAIL PROTECTED]> > > > > To: "Fusebox" <[EMAIL PROTECTED]> > > > > Sent: Friday, February 16, 2001 11:55 AM > > > > Subject: Re: modules, loops, and fun! > > > > > > > > > > > > > By the way, you don't need to pass in your list of form fields, > since > > > they > > > > > are globally available to the CFMODULE you are running. > > > > > > > > > > I think you want to use the EVALUATE function like so: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > However, if you do a list loop (which is slightly slower), then do > > this: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > At 10:22 AM 2/16/01, Ethan Rosc
Re: Delimiters...
I think this is the right track... here's my problem... I'm calling a module I want to add the upload type in this someplace such that the upload field has a corresponding mime type. ex UploadFields="ProductionImage;image/jpeg , ProductionClip;application/rm" what I'm basically getting is a list within a list? If I then loop over the fields can i do the following? If I can do this, I'm a happy dude! Thanks all, Ethan - Original Message - From: "Howie Hamlin" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, February 16, 2001 4:53 PM Subject: Re: Delimiters... > Try the listgetat() function. > > Regards, > > Howie Hamlin - inFusion Project Manager > On-Line Data Solutions, Inc. > www.CoolFusion.com > 631-737-4668 x101 > inFusion Mail Server (iMS) - the World's most configurable mail server > Get your free copy of iMS POST-SE Server from CoolFusion! > > - Original Message - > From: "Ethan Rosch" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Friday, February 16, 2001 4:20 PM > Subject: Delimiters... > > > > Hi all > > > > Is there a command similar to Left(string, count) that is > > > > DelemiterLeft(String,Delimeter) > > DelemiterRight(String, Delimeter) > > > > such that if I was to get a variable like > > > > Name = Toohey,Elton > > > > I could do > > > > > > > #LastName > > > > would give me > > > > Toohey > > > > ? > > > > thanks... > > > > ethan > > > > > > > > - Original Message - > > From: "Ethan Rosch" <[EMAIL PROTECTED]> > > To: "Fusebox" <[EMAIL PROTECTED]> > > Sent: Friday, February 16, 2001 3:20 PM > > Subject: Re: modules, loops, and fun! > > > > > > > Hi Douglas...thanks for the tip... > > > > > > I still think I need to pass my fields as I will be uploading/deleting > > files > > > and don't want to be running my actions on every field. Perhaps I could > > > just do a test for "://". > > > > > > the evaluate() was what I was looking for. > > > > > > e > > > > > > - Original Message - > > > From: "Douglas Smith" <[EMAIL PROTECTED]> > > > To: "Fusebox" <[EMAIL PROTECTED]> > > > Sent: Friday, February 16, 2001 11:55 AM > > > Subject: Re: modules, loops, and fun! > > > > > > > > > > By the way, you don't need to pass in your list of form fields, since > > they > > > > are globally available to the CFMODULE you are running. > > > > > > > > I think you want to use the EVALUATE function like so: > > > > > > > > > > > > > > > > > > > > > > > > However, if you do a list loop (which is slightly slower), then do > this: > > > > > > > > > > > > > > > > > > > > > > > > > > > > At 10:22 AM 2/16/01, Ethan Rosch wrote: > > > > >hi all... > > > > > > > > > >quick question as I delve into the world of modules and loops... > > > > > > > > > > > > > > >I am trying to build a module that will in turn loop over the > > attributes > > > > >sent to it, which are form fields..this module will take whatever > > > form > > > > >fields are sent to it and then get there values and act via a loop. > > > > > > > > > >my problem is how to get the formfelds to parse to their values in > the > > > > >module loop and not their names. > > > > > > > > > >here's a sample code of the idea: > > > > > > > > > > > > > > mylist="firstformfieldname,secondformfieldname,"> > > > > > > > > > >--- > > > > > > > > > >for this example let's say that > > > > > > > > > >firstformfield's user inputed value = Red > > > > >secondformfield's user inputed value = blue > > > > > > > > > >now the module > > > > > > > > > >--- > > > > > > > > > > > > > > > > > > > > #Fieldname# > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >what I want is : > > > > > > > > > >Red > > > > >Blue > > > > > > > > > >what I get is: > > > > > > > > > >FirstFormField > > > > >SecondFormField > > > > > > > > > >any idea's would be greatly appreciated...I'm beating myself up and > now > > I > > > > >come to you. > > > > > > > > > >thanks, > > > > > > > > > >ethan > > > > > > > > > > > > > > > > > > > > > > > > > ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Delimiters...
Or you could also use the following although Jeff has a better result. #GetToken(Name,2,",")# Larry Juncker Senior Cold Fusion Developer Heartland Communications Group, Inc. -Original Message- From: Garza, Jeff [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 3:56 PM To: CF-Talk Subject: RE: Delimiters... Your variable Name is already a list, why try to deal with it as a string? You can use all of the list functions on it. In your case, #firstName# #lastName# would yield the same results. Check into the CF fuctions pertaining to working with lists. HTH Jeff Garza Web Developer/Webmaster Spectrum Astro, Inc. 480.892.8200 [EMAIL PROTECTED] http://www.spectrumastro.com -Original Message- From: Ethan Rosch [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 2:20 PM To: CF-Talk Subject: Delimiters... Hi all Is there a command similar to Left(string, count) that is DelemiterLeft(String,Delimeter) DelemiterRight(String, Delimeter) such that if I was to get a variable like Name = Toohey,Elton I could do #LastName would give me Toohey ? thanks... ethan - Original Message - From: "Ethan Rosch" <[EMAIL PROTECTED]> To: "Fusebox" <[EMAIL PROTECTED]> Sent: Friday, February 16, 2001 3:20 PM Subject: Re: modules, loops, and fun! > Hi Douglas...thanks for the tip... > > I still think I need to pass my fields as I will be uploading/deleting files > and don't want to be running my actions on every field. Perhaps I could > just do a test for "://". > > the evaluate() was what I was looking for. > > e > > - Original Message - > From: "Douglas Smith" <[EMAIL PROTECTED]> > To: "Fusebox" <[EMAIL PROTECTED]> > Sent: Friday, February 16, 2001 11:55 AM > Subject: Re: modules, loops, and fun! > > > > By the way, you don't need to pass in your list of form fields, since they > > are globally available to the CFMODULE you are running. > > > > I think you want to use the EVALUATE function like so: > > > > > > > > > > > > However, if you do a list loop (which is slightly slower), then do this: > > > > > > > > > > > > > > At 10:22 AM 2/16/01, Ethan Rosch wrote: > > >hi all... > > > > > >quick question as I delve into the world of modules and loops... > > > > > > > > >I am trying to build a module that will in turn loop over the attributes > > >sent to it, which are form fields..this module will take whatever > form > > >fields are sent to it and then get there values and act via a loop. > > > > > >my problem is how to get the formfelds to parse to their values in the > > >module loop and not their names. > > > > > >here's a sample code of the idea: > > > > > > > > mylist="firstformfieldname,secondformfieldname,"> > > > > > >--- > > > > > >for this example let's say that > > > > > >firstformfield's user inputed value = Red > > >secondformfield's user inputed value = blue > > > > > >now the module > > > > > >--- > > > > > > > > > > > > #Fieldname# > > > > > > > > > > > > > > > > > >what I want is : > > > > > >Red > > >Blue > > > > > >what I get is: > > > > > >FirstFormField > > >SecondFormField > > > > > >any idea's would be greatly appreciated...I'm beating myself up and now I > > >come to you. > > > > > >thanks, > > > > > >ethan > > > > > > > > > > > > ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Delimiters...
I think you ment ListLen(name)? - Original Message - From: "Tony Schreiber" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, February 16, 2001 3:52 PM Subject: Re: Delimiters... > Why not LastName = ListGetAt(Name,1) > you could even do to test if there's a comma. > > > Is there a command similar to Left(string, count) that is > > > > DelemiterLeft(String,Delimeter) > > DelemiterRight(String, Delimeter) > > > > such that if I was to get a variable like > > > > Name = Toohey,Elton > > > > I could do > > > > > > > #LastName > > > > would give me > > > > Toohey > > > > ? > > > > thanks... > > > > ethan > > > > > > > > - Original Message - > > From: "Ethan Rosch" <[EMAIL PROTECTED]> > > To: "Fusebox" <[EMAIL PROTECTED]> > > Sent: Friday, February 16, 2001 3:20 PM > > Subject: Re: modules, loops, and fun! > > > > > > > Hi Douglas...thanks for the tip... > > > > > > I still think I need to pass my fields as I will be uploading/deleting > > files > > > and don't want to be running my actions on every field. Perhaps I could > > > just do a test for "://". > > > > > > the evaluate() was what I was looking for. > > > > > > e > > > > > > - Original Message - > > > From: "Douglas Smith" <[EMAIL PROTECTED]> > > > To: "Fusebox" <[EMAIL PROTECTED]> > > > Sent: Friday, February 16, 2001 11:55 AM > > > Subject: Re: modules, loops, and fun! > > > > > > > > > > By the way, you don't need to pass in your list of form fields, since > > they > > > > are globally available to the CFMODULE you are running. > > > > > > > > I think you want to use the EVALUATE function like so: > > > > > > > > > > > > > > > > > > > > > > > > However, if you do a list loop (which is slightly slower), then do this: > > > > > > > > > > > > > > > > > > > > > > > > > > > > At 10:22 AM 2/16/01, Ethan Rosch wrote: > > > > >hi all... > > > > > > > > > >quick question as I delve into the world of modules and loops... > > > > > > > > > > > > > > >I am trying to build a module that will in turn loop over the > > attributes > > > > >sent to it, which are form fields..this module will take whatever > > > form > > > > >fields are sent to it and then get there values and act via a loop. > > > > > > > > > >my problem is how to get the formfelds to parse to their values in the > > > > >module loop and not their names. > > > > > > > > > >here's a sample code of the idea: > > > > > > > > > > > > > > mylist="firstformfieldname,secondformfieldname,"> > > > > > > > > > >--- > > > > > > > > > >for this example let's say that > > > > > > > > > >firstformfield's user inputed value = Red > > > > >secondformfield's user inputed value = blue > > > > > > > > > >now the module > > > > > > > > > >--- > > > > > > > > > > > > > > > > > > > > #Fieldname# > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >what I want is : > > > > > > > > > >Red > > > > >Blue > > > > > > > > > >what I get is: > > > > > > > > > >FirstFormField > > > > >SecondFormField > > > > > > > > > >any idea's would be greatly appreciated...I'm beating myself up and now > > I > > > > >come to you. > > > > > > > > > >thanks, > > > > > > > > > >ethan > > > > > > > > > > > > > > > > > > > > > > > > > ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Delimiters...
look at the ListFirst, ListLast, and ListRest functions. chris olive, cio cresco technologies [EMAIL PROTECTED] http://www.crescotech.com -Original Message- From: Ethan Rosch [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 4:20 PM To: CF-Talk Subject: Delimiters... Hi all Is there a command similar to Left(string, count) that is DelemiterLeft(String,Delimeter) DelemiterRight(String, Delimeter) such that if I was to get a variable like Name = Toohey,Elton I could do #LastName would give me Toohey ? thanks... ethan - Original Message - From: "Ethan Rosch" <[EMAIL PROTECTED]> To: "Fusebox" <[EMAIL PROTECTED]> Sent: Friday, February 16, 2001 3:20 PM Subject: Re: modules, loops, and fun! > Hi Douglas...thanks for the tip... > > I still think I need to pass my fields as I will be uploading/deleting files > and don't want to be running my actions on every field. Perhaps I could > just do a test for "://". > > the evaluate() was what I was looking for. > > e > > - Original Message - > From: "Douglas Smith" <[EMAIL PROTECTED]> > To: "Fusebox" <[EMAIL PROTECTED]> > Sent: Friday, February 16, 2001 11:55 AM > Subject: Re: modules, loops, and fun! > > > > By the way, you don't need to pass in your list of form fields, since they > > are globally available to the CFMODULE you are running. > > > > I think you want to use the EVALUATE function like so: > > > > > > > > > > > > However, if you do a list loop (which is slightly slower), then do this: > > > > > > > > > > > > > > At 10:22 AM 2/16/01, Ethan Rosch wrote: > > >hi all... > > > > > >quick question as I delve into the world of modules and loops... > > > > > > > > >I am trying to build a module that will in turn loop over the attributes > > >sent to it, which are form fields..this module will take whatever > form > > >fields are sent to it and then get there values and act via a loop. > > > > > >my problem is how to get the formfelds to parse to their values in the > > >module loop and not their names. > > > > > >here's a sample code of the idea: > > > > > > > > mylist="firstformfieldname,secondformfieldname,"> > > > > > >--- > > > > > >for this example let's say that > > > > > >firstformfield's user inputed value = Red > > >secondformfield's user inputed value = blue > > > > > >now the module > > > > > >--- > > > > > > > > > > > > #Fieldname# > > > > > > > > > > > > > > > > > >what I want is : > > > > > >Red > > >Blue > > > > > >what I get is: > > > > > >FirstFormField > > >SecondFormField > > > > > >any idea's would be greatly appreciated...I'm beating myself up and now I > > >come to you. > > > > > >thanks, > > > > > >ethan > > > > > > > > > > > > ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Delimiters...
Probably the closest would be GetToken(). Hal Helms == See ColdFusionTraining.com for info on "Best Practices with ColdFusion & Fusebox" training == -Original Message- From: Ethan Rosch [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 4:20 PM To: CF-Talk Subject: Delimiters... Hi all Is there a command similar to Left(string, count) that is DelemiterLeft(String,Delimeter) DelemiterRight(String, Delimeter) such that if I was to get a variable like Name = Toohey,Elton I could do #LastName would give me Toohey ? thanks... ethan - Original Message - From: "Ethan Rosch" <[EMAIL PROTECTED]> To: "Fusebox" <[EMAIL PROTECTED]> Sent: Friday, February 16, 2001 3:20 PM Subject: Re: modules, loops, and fun! > Hi Douglas...thanks for the tip... > > I still think I need to pass my fields as I will be uploading/deleting files > and don't want to be running my actions on every field. Perhaps I could > just do a test for "://". > > the evaluate() was what I was looking for. > > e > > - Original Message - > From: "Douglas Smith" <[EMAIL PROTECTED]> > To: "Fusebox" <[EMAIL PROTECTED]> > Sent: Friday, February 16, 2001 11:55 AM > Subject: Re: modules, loops, and fun! > > > > By the way, you don't need to pass in your list of form fields, since they > > are globally available to the CFMODULE you are running. > > > > I think you want to use the EVALUATE function like so: > > > > > > > > > > > > However, if you do a list loop (which is slightly slower), then do this: > > > > > > > > > > > > > > At 10:22 AM 2/16/01, Ethan Rosch wrote: > > >hi all... > > > > > >quick question as I delve into the world of modules and loops... > > > > > > > > >I am trying to build a module that will in turn loop over the attributes > > >sent to it, which are form fields..this module will take whatever > form > > >fields are sent to it and then get there values and act via a loop. > > > > > >my problem is how to get the formfelds to parse to their values in the > > >module loop and not their names. > > > > > >here's a sample code of the idea: > > > > > > > > mylist="firstformfieldname,secondformfieldname,"> > > > > > >--- > > > > > >for this example let's say that > > > > > >firstformfield's user inputed value = Red > > >secondformfield's user inputed value = blue > > > > > >now the module > > > > > >--- > > > > > > > > > > > > #Fieldname# > > > > > > > > > > > > > > > > > >what I want is : > > > > > >Red > > >Blue > > > > > >what I get is: > > > > > >FirstFormField > > >SecondFormField > > > > > >any idea's would be greatly appreciated...I'm beating myself up and now I > > >come to you. > > > > > >thanks, > > > > > >ethan > > > > > > > > > > > > ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Delimiters...
Your variable Name is already a list, why try to deal with it as a string? You can use all of the list functions on it. In your case, #firstName# #lastName# would yield the same results. Check into the CF fuctions pertaining to working with lists. HTH Jeff Garza Web Developer/Webmaster Spectrum Astro, Inc. 480.892.8200 [EMAIL PROTECTED] http://www.spectrumastro.com -Original Message- From: Ethan Rosch [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 2:20 PM To: CF-Talk Subject: Delimiters... Hi all Is there a command similar to Left(string, count) that is DelemiterLeft(String,Delimeter) DelemiterRight(String, Delimeter) such that if I was to get a variable like Name = Toohey,Elton I could do #LastName would give me Toohey ? thanks... ethan - Original Message - From: "Ethan Rosch" <[EMAIL PROTECTED]> To: "Fusebox" <[EMAIL PROTECTED]> Sent: Friday, February 16, 2001 3:20 PM Subject: Re: modules, loops, and fun! > Hi Douglas...thanks for the tip... > > I still think I need to pass my fields as I will be uploading/deleting files > and don't want to be running my actions on every field. Perhaps I could > just do a test for "://". > > the evaluate() was what I was looking for. > > e > > - Original Message - > From: "Douglas Smith" <[EMAIL PROTECTED]> > To: "Fusebox" <[EMAIL PROTECTED]> > Sent: Friday, February 16, 2001 11:55 AM > Subject: Re: modules, loops, and fun! > > > > By the way, you don't need to pass in your list of form fields, since they > > are globally available to the CFMODULE you are running. > > > > I think you want to use the EVALUATE function like so: > > > > > > > > > > > > However, if you do a list loop (which is slightly slower), then do this: > > > > > > > > > > > > > > At 10:22 AM 2/16/01, Ethan Rosch wrote: > > >hi all... > > > > > >quick question as I delve into the world of modules and loops... > > > > > > > > >I am trying to build a module that will in turn loop over the attributes > > >sent to it, which are form fields..this module will take whatever > form > > >fields are sent to it and then get there values and act via a loop. > > > > > >my problem is how to get the formfelds to parse to their values in the > > >module loop and not their names. > > > > > >here's a sample code of the idea: > > > > > > > > mylist="firstformfieldname,secondformfieldname,"> > > > > > >--- > > > > > >for this example let's say that > > > > > >firstformfield's user inputed value = Red > > >secondformfield's user inputed value = blue > > > > > >now the module > > > > > >--- > > > > > > > > > > > > #Fieldname# > > > > > > > > > > > > > > > > > >what I want is : > > > > > >Red > > >Blue > > > > > >what I get is: > > > > > >FirstFormField > > >SecondFormField > > > > > >any idea's would be greatly appreciated...I'm beating myself up and now I > > >come to you. > > > > > >thanks, > > > > > >ethan > > > > > > > > > > > > ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Delimiters...
Try the listgetat() function. Regards, Howie Hamlin - inFusion Project Manager On-Line Data Solutions, Inc. www.CoolFusion.com 631-737-4668 x101 inFusion Mail Server (iMS) - the World's most configurable mail server Get your free copy of iMS POST-SE Server from CoolFusion! - Original Message - From: "Ethan Rosch" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, February 16, 2001 4:20 PM Subject: Delimiters... > Hi all > > Is there a command similar to Left(string, count) that is > > DelemiterLeft(String,Delimeter) > DelemiterRight(String, Delimeter) > > such that if I was to get a variable like > > Name = Toohey,Elton > > I could do > > > #LastName > > would give me > > Toohey > > ? > > thanks... > > ethan > > > > - Original Message - > From: "Ethan Rosch" <[EMAIL PROTECTED]> > To: "Fusebox" <[EMAIL PROTECTED]> > Sent: Friday, February 16, 2001 3:20 PM > Subject: Re: modules, loops, and fun! > > > > Hi Douglas...thanks for the tip... > > > > I still think I need to pass my fields as I will be uploading/deleting > files > > and don't want to be running my actions on every field. Perhaps I could > > just do a test for "://". > > > > the evaluate() was what I was looking for. > > > > e > > > > - Original Message - > > From: "Douglas Smith" <[EMAIL PROTECTED]> > > To: "Fusebox" <[EMAIL PROTECTED]> > > Sent: Friday, February 16, 2001 11:55 AM > > Subject: Re: modules, loops, and fun! > > > > > > > By the way, you don't need to pass in your list of form fields, since > they > > > are globally available to the CFMODULE you are running. > > > > > > I think you want to use the EVALUATE function like so: > > > > > > > > > > > > > > > > > > However, if you do a list loop (which is slightly slower), then do this: > > > > > > > > > > > > > > > > > > > > > At 10:22 AM 2/16/01, Ethan Rosch wrote: > > > >hi all... > > > > > > > >quick question as I delve into the world of modules and loops... > > > > > > > > > > > >I am trying to build a module that will in turn loop over the > attributes > > > >sent to it, which are form fields..this module will take whatever > > form > > > >fields are sent to it and then get there values and act via a loop. > > > > > > > >my problem is how to get the formfelds to parse to their values in the > > > >module loop and not their names. > > > > > > > >here's a sample code of the idea: > > > > > > > > > > > mylist="firstformfieldname,secondformfieldname,"> > > > > > > > >--- > > > > > > > >for this example let's say that > > > > > > > >firstformfield's user inputed value = Red > > > >secondformfield's user inputed value = blue > > > > > > > >now the module > > > > > > > >--- > > > > > > > > > > > > > > > > #Fieldname# > > > > > > > > > > > > > > > > > > > > > > > >what I want is : > > > > > > > >Red > > > >Blue > > > > > > > >what I get is: > > > > > > > >FirstFormField > > > >SecondFormField > > > > > > > >any idea's would be greatly appreciated...I'm beating myself up and now > I > > > >come to you. > > > > > > > >thanks, > > > > > > > >ethan > > > > > > > > > > > > > > > > > > ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Delimiters...
Why not LastName = ListGetAt(Name,1) you could even do to test if there's a comma. > Is there a command similar to Left(string, count) that is > > DelemiterLeft(String,Delimeter) > DelemiterRight(String, Delimeter) > > such that if I was to get a variable like > > Name = Toohey,Elton > > I could do > > > #LastName > > would give me > > Toohey > > ? > > thanks... > > ethan > > > > - Original Message - > From: "Ethan Rosch" <[EMAIL PROTECTED]> > To: "Fusebox" <[EMAIL PROTECTED]> > Sent: Friday, February 16, 2001 3:20 PM > Subject: Re: modules, loops, and fun! > > > > Hi Douglas...thanks for the tip... > > > > I still think I need to pass my fields as I will be uploading/deleting > files > > and don't want to be running my actions on every field. Perhaps I could > > just do a test for "://". > > > > the evaluate() was what I was looking for. > > > > e > > > > - Original Message - > > From: "Douglas Smith" <[EMAIL PROTECTED]> > > To: "Fusebox" <[EMAIL PROTECTED]> > > Sent: Friday, February 16, 2001 11:55 AM > > Subject: Re: modules, loops, and fun! > > > > > > > By the way, you don't need to pass in your list of form fields, since > they > > > are globally available to the CFMODULE you are running. > > > > > > I think you want to use the EVALUATE function like so: > > > > > > > > > > > > > > > > > > However, if you do a list loop (which is slightly slower), then do this: > > > > > > > > > > > > > > > > > > > > > At 10:22 AM 2/16/01, Ethan Rosch wrote: > > > >hi all... > > > > > > > >quick question as I delve into the world of modules and loops... > > > > > > > > > > > >I am trying to build a module that will in turn loop over the > attributes > > > >sent to it, which are form fields..this module will take whatever > > form > > > >fields are sent to it and then get there values and act via a loop. > > > > > > > >my problem is how to get the formfelds to parse to their values in the > > > >module loop and not their names. > > > > > > > >here's a sample code of the idea: > > > > > > > > > > > mylist="firstformfieldname,secondformfieldname,"> > > > > > > > >--- > > > > > > > >for this example let's say that > > > > > > > >firstformfield's user inputed value = Red > > > >secondformfield's user inputed value = blue > > > > > > > >now the module > > > > > > > >--- > > > > > > > > > > > > > > > > #Fieldname# > > > > > > > > > > > > > > > > > > > > > > > >what I want is : > > > > > > > >Red > > > >Blue > > > > > > > >what I get is: > > > > > > > >FirstFormField > > > >SecondFormField > > > > > > > >any idea's would be greatly appreciated...I'm beating myself up and now > I > > > >come to you. > > > > > > > >thanks, > > > > > > > >ethan > > > > > > > > > > > > > > > > > > ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Delimiters...
check the list functions ListGetAt(list,position,delimiters) or ListFirst() and ListLast() hit F1 for on the function name to see the explanation - Original Message - From: "Ethan Rosch" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, February 16, 2001 3:20 PM Subject: Delimiters... > Hi all > > Is there a command similar to Left(string, count) that is > > DelemiterLeft(String,Delimeter) > DelemiterRight(String, Delimeter) > > such that if I was to get a variable like > > Name = Toohey,Elton > > I could do > > > #LastName > > would give me > > Toohey > > ? > > thanks... > > ethan > > > > - Original Message - > From: "Ethan Rosch" <[EMAIL PROTECTED]> > To: "Fusebox" <[EMAIL PROTECTED]> > Sent: Friday, February 16, 2001 3:20 PM > Subject: Re: modules, loops, and fun! > > > > Hi Douglas...thanks for the tip... > > > > I still think I need to pass my fields as I will be uploading/deleting > files > > and don't want to be running my actions on every field. Perhaps I could > > just do a test for "://". > > > > the evaluate() was what I was looking for. > > > > e > > > > - Original Message - > > From: "Douglas Smith" <[EMAIL PROTECTED]> > > To: "Fusebox" <[EMAIL PROTECTED]> > > Sent: Friday, February 16, 2001 11:55 AM > > Subject: Re: modules, loops, and fun! > > > > > > > By the way, you don't need to pass in your list of form fields, since > they > > > are globally available to the CFMODULE you are running. > > > > > > I think you want to use the EVALUATE function like so: > > > > > > > > > > > > > > > > > > However, if you do a list loop (which is slightly slower), then do this: > > > > > > > > > > > > > > > > > > > > > At 10:22 AM 2/16/01, Ethan Rosch wrote: > > > >hi all... > > > > > > > >quick question as I delve into the world of modules and loops... > > > > > > > > > > > >I am trying to build a module that will in turn loop over the > attributes > > > >sent to it, which are form fields..this module will take whatever > > form > > > >fields are sent to it and then get there values and act via a loop. > > > > > > > >my problem is how to get the formfelds to parse to their values in the > > > >module loop and not their names. > > > > > > > >here's a sample code of the idea: > > > > > > > > > > > mylist="firstformfieldname,secondformfieldname,"> > > > > > > > >--- > > > > > > > >for this example let's say that > > > > > > > >firstformfield's user inputed value = Red > > > >secondformfield's user inputed value = blue > > > > > > > >now the module > > > > > > > >--- > > > > > > > > > > > > > > > > #Fieldname# > > > > > > > > > > > > > > > > > > > > > > > >what I want is : > > > > > > > >Red > > > >Blue > > > > > > > >what I get is: > > > > > > > >FirstFormField > > > >SecondFormField > > > > > > > >any idea's would be greatly appreciated...I'm beating myself up and now > I > > > >come to you. > > > > > > > >thanks, > > > > > > > >ethan > > > > > > > > > > > > > > > > > > ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Delimiters...
How about listgetat(Name,1,",")? That would do what you want... Jason Powers Fig Leaf Software 202-797-5440 -Original Message- From: Ethan Rosch [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 4:20 PM To: CF-Talk Subject: Delimiters... Hi all Is there a command similar to Left(string, count) that is DelemiterLeft(String,Delimeter) DelemiterRight(String, Delimeter) such that if I was to get a variable like Name = Toohey,Elton I could do #LastName would give me Toohey ? thanks... ethan - Original Message - From: "Ethan Rosch" <[EMAIL PROTECTED]> To: "Fusebox" <[EMAIL PROTECTED]> Sent: Friday, February 16, 2001 3:20 PM Subject: Re: modules, loops, and fun! > Hi Douglas...thanks for the tip... > > I still think I need to pass my fields as I will be uploading/deleting files > and don't want to be running my actions on every field. Perhaps I could > just do a test for "://". > > the evaluate() was what I was looking for. > > e > > - Original Message - > From: "Douglas Smith" <[EMAIL PROTECTED]> > To: "Fusebox" <[EMAIL PROTECTED]> > Sent: Friday, February 16, 2001 11:55 AM > Subject: Re: modules, loops, and fun! > > > > By the way, you don't need to pass in your list of form fields, since they > > are globally available to the CFMODULE you are running. > > > > I think you want to use the EVALUATE function like so: > > > > > > > > > > > > However, if you do a list loop (which is slightly slower), then do this: > > > > > > > > > > > > > > At 10:22 AM 2/16/01, Ethan Rosch wrote: > > >hi all... > > > > > >quick question as I delve into the world of modules and loops... > > > > > > > > >I am trying to build a module that will in turn loop over the attributes > > >sent to it, which are form fields..this module will take whatever > form > > >fields are sent to it and then get there values and act via a loop. > > > > > >my problem is how to get the formfelds to parse to their values in the > > >module loop and not their names. > > > > > >here's a sample code of the idea: > > > > > > > > mylist="firstformfieldname,secondformfieldname,"> > > > > > >--- > > > > > >for this example let's say that > > > > > >firstformfield's user inputed value = Red > > >secondformfield's user inputed value = blue > > > > > >now the module > > > > > >--- > > > > > > > > > > > > #Fieldname# > > > > > > > > > > > > > > > > > >what I want is : > > > > > >Red > > >Blue > > > > > >what I get is: > > > > > >FirstFormField > > >SecondFormField > > > > > >any idea's would be greatly appreciated...I'm beating myself up and now I > > >come to you. > > > > > >thanks, > > > > > >ethan > > > > > > > > > > > > ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Delimiters
You can probably treat the string as a List with a '\' separator. This means you could use the ListGetAt function et al. and construction. > -Original Message- > From: Mike Weaver [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 10, 2000 4:50 PM > To: CF-Talk > Subject: Fw: Delimiters > > > This is a multi-part message in MIME format. > > --=_NextPart_000_01FF_01C032EA.EDB0D8E0 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > > - Original Message -=20 > From: Mike Weaver=20 > To: [EMAIL PROTECTED]=20 > Sent: Tuesday, October 10, 2000 6:46 PM > Subject: Delimiters > > > How can I break apart and display a file by it's delimiter? I am = > entering multiple notes in a field with CFUPDATE and need to separate by = > the delimiter when I display in CFTABLE. > > Any help appreciated!! > > Mike > > --=_NextPart_000_01FF_01C032EA.EDB0D8E0 > Content-Type: text/html; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > > > charset=3Diso-8859-1"> > > > > > > - Original Message -=20 > From: [EMAIL PROTECTED] = > href=3D"mailto:[EMAIL PROTECTED]">Mike=20 > Weaver > To: href=3D"mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED] = > > Sent: Tuesday, October 10, 2000 6:46 PM > Subject: Delimiters > > How can I break apart and display a file by = > it's=20 > delimiter? I am entering multiple notes in a field with CFUPDATE and = > need to=20 > separate by the delimiter when I display in CFTABLE. > > Any help appreciated!! > > Mike > > --=_NextPart_000_01FF_01C032EA.EDB0D8E0-- > > -- > > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > To Unsubscribe visit > http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf _talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.