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 > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292894 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4