On Sat, 8 Jan 2005 12:29:04 +1300, Adam Cameron <[EMAIL PROTECTED]> wrote:
> In a more broad situation, in which you're trying to extract *any* file
> extension, how would you got about it?

Do you mean:

I have a variable containing a filename and a variable containing an
arbitrary extension and I need to see whether the filename ends in
that extension? (use right())

Or:

I have a variable containing a filename and I need to find out what
"dot-plus-three-letter" extension it has? (use right())

Or:

I have a variable containing a filename and I need to find out what,
if any, extension it has? (use listLast() probably)

> I think as soon as Allaire allowed any character(s) to be delimiters,
> exactly what consitutes a "list" in the CF vernacular kind of moved away
> from the notion you or I might have of a "list".

Yes, but it's always good to have an internal sanity check before
immediately diving into using listXxx() functions on strings... I see
a lot of listGetAt() calls in code and that function is almost never
the right way to do things!
-- 
Sean A Corfield -- http://www.corfield.org/
Team Fusebox -- http://www.fusebox.org/
Breeze Me! -- http://www.corfield.org/breezeme
Got Gmail? -- I have 5 invites to give away!

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to