I saw your mention of those variables, Charlie, and I'm definitely
going that way... they seem made just for my purposes.

Rick

> -----Original Message-----
> From: Charlie Griefer [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 07, 2007 5:04 PM
> To: CF-Talk
> Subject: Re: How do I get the characters after the last period in a string?
> 
> am i missing something here?  if you're trying to get the file name
> (sans extension) and extension (sas filename) -of an uploaded file-...
> why not the cffile variables that i mentioned earlier (or has my prior
> message not made it yet?)
> 
> On Nov 7, 2007 11:53 AM, Bobby Hartsfield <[EMAIL PROTECTED]> wrote:
> > Listlast(filename, '.')
> > to get the extenstion
> >
> > And...
> >
> > ListDeleteAt(filename, listlen(filename, '.'), '.')
> > to get everything except the extension (including the dot)
> >
> > It doesn't matter with either method whether there is 1 dot or 40. They will
> > work as long as there is at least 1 dot present.
> > However, the first will return the entire string if there is no dot and the
> > second will return an empty string if there is no dot.
> >
> > ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
> > Bobby Hartsfield
> > http://acoderslife.com
> >
> >
> >
> >
> >
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292912
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to