+10000 On Nov 7, 2007 5:04 PM, Charlie Griefer <[EMAIL PROTECTED]> wrote: > 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 > > > > > > > > > > > >
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292910 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

