House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

ColdFusion substring?

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
is there any substring function for CF?
Mak Wing Lok
03/08/01 09:58 P
yes ...function MID
JAIME HOI
03/08/01 10:02 P
> is there any substring function for CF?
Philip Arnold - ASP
03/09/01 04:54 A
> is there any substring function for CF?
Tom Donovan
08/01/06 10:49 A
> > is there any substring function for CF?
Dave Carabetta
08/01/06 10:57 A
isn't this thread like 5 1/2 years old? :)
Charlie Griefer
08/01/06 11:03 A
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Mak Wing Lok
03/08/2001 09:58 PM

is there any substring function for CF? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
JAIME HOI
03/08/2001 10:02 PM

yes ...function MID is there any substring function for CF? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
David E. Crawford
03/08/2001 10:08 PM

left(), right(), mid() are available for CF.  Mid() performs a similar function as substring(). DC > is there any substring function for CF? > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Philip Arnold - ASP
03/09/2001 04:54 AM

> is there any substring function for CF? 1) Open CF Documentation 2) Click on "Functions" 3) Click on "String Functions" 4) Look down list Total time taken - less than 30 seconds Alternatively 1) Send email to CF-Talk 2) Wait 5 minutes for response 3) Not learn how to lookup functions To be honest (and I may be being harsh here), but if you worked for me, you'd be on a written warning or out of the door Anyone too lazy to do 30 seconds of checking in the docs just wouldn't work for me! Philip Arnold Director Certified ColdFusion Developer ASP Multimedia Limited T: +44 (0)20 8680 1133 "Websites for the real world" ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ********************************************************************** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jim McAtee
03/09/2001 05:12 AM

Who says he's a professional developer, or that anyone even pays him to write code?  Damned glad to see you'd know how to handle the situation, though. Jim ----- Excess quoted text cut - see Original Post for more ----- work ----- Excess quoted text cut - see Original Post for more ----- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Philip Arnold - ASP
03/09/2001 05:52 AM

> Who says he's a professional developer, or that anyone even pays him to > write code?  Damned glad to see you'd know how to handle the situation, > though. It's still easier to look into documentation for something that simple than to ask a list which can take 5-10 minutes (at a minimum to respond) We have actually got rid of a developer who never looked in books or on-line documentation and asked for help about everything A typical question was "How do I change the background color on a page?" when they were meant to know HTML I can understand asking questions which aren't readily available in the documentation within a few minutes of searching, but asking questions like this is just plain lazy Philip Arnold Director Certified ColdFusion Developer ASP Multimedia Limited T: +44 (0)20 8680 1133 "Websites for the real world" ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ********************************************************************** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jeffry Houser
03/09/2001 10:38 AM

   By the same token, I once worked for a company where the director (manager, whatever I forget his exact title) of the web development department wanted to get rid of someone who wouldn't ask questions.  He'd easily spend 6-8 hours on a problem without making any progress or headway.  I guess the trick is knowing when to ask questions. At 10:39 AM 03/09/2001 +0000, you wrote: ----- Excess quoted text cut - see Original Post for more ----- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Philip Arnold - ASP
03/09/2001 10:53 AM

>    By the same token, I once worked for a company where the director > (manager, whatever I forget his exact title) of the web development > department wanted to get rid of someone who wouldn't ask questions.  He'd > easily spend 6-8 hours on a problem without making any progress or > headway.  I guess the trick is knowing when to ask questions. True - but there's not asking as you're working on something so involving that you're just buried, and not asking as it's too simple a question and you're embarrased Or there's asking as it's too damn complicated or asking because you can't be bothered to look it up... We have people who would rather sort something out themselves as a matter of pride - but usually only on things which are hellishly difficult - if any got stuck and didn't check on some mundane question, then we'd have a go about that... Philip Arnold Director Certified ColdFusion Developer ASP Multimedia Limited T: +44 (0)20 8680 1133 "Websites for the real world" ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ********************************************************************** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
James Maltby
03/09/2001 06:06 AM

Go for you life Philip!  I agree whole heartedly with your approach, I had to ask someone to "leave" when after two weeks of "coding" for us, someone noticed he was simply creating folders within folders and moving files in and out of them... Another thing folks should use is the Ben Forta Bible, both Old and New testaments (blue and green, simple and advanced), take it home, sleep with it as a pillow and try to absorb the information while they sleep! James > Who says he's a professional developer, or that anyone even pays him to > write code?  Damned glad to see you'd know how to handle the situation, > though. It's still easier to look into documentation for something that simple than to ask a list which can take 5-10 minutes (at a minimum to respond) We have actually got rid of a developer who never looked in books or on-line documentation and asked for help about everything A typical question was "How do I change the background color on a page?" when they were meant to know HTML I can understand asking questions which aren't readily available in the documentation within a few minutes of searching, but asking questions like this is just plain lazy Philip Arnold Director Certified ColdFusion Developer ASP Multimedia Limited T: +44 (0)20 8680 1133 "Websites for the real world" ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ********************************************************************** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Andy Ewings
03/09/2001 06:24 AM

I agree..........it's much better to find out for yourself by looking in books/ help files, etc....if you have no joy then ask fellow developers. However....... I think that we may be being a bit harsh - As Jim says we don't know how good people are who post questions here.  We also don't know how much time he has spent looking for the answer (all be it in the wrong places).  What seems obvious to some of us may seem impossible to others.  I know that as a SQL programmer a lot of the SQL questions I get asked by CF developers (and see on this forum!) are trivial but I answer them all the same (and basic SQL knowledge is, or should be, a requirement for CF developers) as should anyone who knows the answer as one day we'll be asking questions that are trivial to others and I'd want them answering! I also think that the prospect of giving someone a written warning for asking trivial questions is entering a whole world of pain.....but good luck to you! Andy > Who says he's a professional developer, or that anyone even pays him to > write code?  Damned glad to see you'd know how to handle the situation, > though. It's still easier to look into documentation for something that simple than to ask a list which can take 5-10 minutes (at a minimum to respond) We have actually got rid of a developer who never looked in books or on-line documentation and asked for help about everything A typical question was "How do I change the background color on a page?" when they were meant to know HTML I can understand asking questions which aren't readily available in the documentation within a few minutes of searching, but asking questions like this is just plain lazy Philip Arnold Director Certified ColdFusion Developer ASP Multimedia Limited T: +44 (0)20 8680 1133 "Websites for the real world" ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ********************************************************************** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Philip Arnold - ASP
03/09/2001 06:40 AM

> I agree..........it's much better to find out for yourself by looking in > books/ help files, etc....if you have no joy then ask fellow developers. True - people learn by doing things themselves - anyone who learns by parrot fashion just isn't learning (IMO)... ----- Excess quoted text cut - see Original Post for more ----- Very true, the reason why some of us are here is to help others - but that question was on a par with "How do I select all rows from a table?" It wasn't just trivial, it was basic... > I also think that the prospect of giving someone a written warning for > asking trivial questions is entering a whole world of pain.....but good > luck to you! We actually gave someone a verbal warning a week or so ago because they weren't bothing to use on-line references or books and just asking everyone else around them (thus wasting the other person's time) - they now are the most attentive mailing list reader for Generator, which is their current task As I put on my original message, it wasn't exactly difficult to find - I've asked junior developers to do the same while I watch (and time) them - it just proves how easy finding most information is... Philip Arnold Director Certified ColdFusion Developer ASP Multimedia Limited T: +44 (0)20 8680 1133 "Websites for the real world" ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ********************************************************************** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jeffry Houser
03/09/2001 10:42 AM

   I see where your coming from.  I suppose (if the person worked for me) it would have to depend on this persons skillset, and what type of questions they were asking (or not asking). At 11:14 AM 03/09/2001 +0000, you wrote: ----- Excess quoted text cut - see Original Post for more ----- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Philip Arnold - ASP
03/09/2001 11:07 AM

>    I see where your coming from.  I suppose (if the person worked for me) > it would have to depend on this persons skillset, and what type of > questions they were asking (or not asking). My complaint was on the level of the question - it takes 30 seconds to look-up the question that was asked... that would just be unacceptable... Philip Arnold Director Certified ColdFusion Developer ASP Multimedia Limited T: +44 (0)20 8680 1133 "Websites for the real world" ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ********************************************************************** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Mingo Hagen
08/01/2006 10:53 AM

Yeah they do, but substring wouldn't that be mid()? Tom Donovan wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave Carabetta
08/01/2006 10:57 AM

> > is there any substring function for CF? > > http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&file=00000463.htm#1104504 > > FindNoCase > Actually, it's the mid() function. Regards, Dave.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Charlie Griefer
08/01/2006 11:03 AM

isn't this thread like 5 1/2 years old? :) ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Ben Nadel
08/01/2006 11:06 AM

And don't forget about Left() and Right() if you want a substring at the ends of a string. ...................... Ben Nadel www.bennadel.com ----- Excess quoted text cut - see Original Post for more ----- Actually, it's the mid() function. Regards, Dave.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Snake
08/01/2006 11:29 AM

FindNoCase() will find a sub-string inside a string. Mid() will extract whatever is from/to the specified positions in the string. ----- Excess quoted text cut - see Original Post for more ----- Actually, it's the mid() function. Regards, Dave.


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 24, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Designer, Developer and mobile workflow conference