> So, basically, what you're saying (besides "upgrade!" :o),
> is that it can't be done with any combination of CFIF
> statements...right?

> I'm trying to figure out if I'm just continuing to beat a
> dead horse...

Nope. Unfortunately because LSParseNumber() throws an error on any
value it can't parse, no amount of CFIF is going to be a complete
solution. You have to have a try-catch in it somewhere, otherwise your
page is just going to display a CF error to your user if they enter
some value CF doesn't understand.

This is why I really wish LSParseNumber would return an empty string
instead of producing an error -- because if it did, you could
gracefully use just cfif statements to test for valid numbers and
wouldn't need the extra try-catch statements.

:::sigh:::

CF's internationalization features in general seem to be rather
lacking unfortunately. They're certainly a lot better with more recent
versions of the server (and for most of us a bit easier to use than
Java -- I can't compare to PHP or ASP), but still fairly less than
ideal. Granted that throwing an error is what Java's NumberFormat
objects do with unrecognizable strings also, so it's consistent with
Java's behavior -- it's just not very easy/intuitive/useful/helpful
behavior (much like Java at large).


s. isaac dealey     434.293.6201
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234452
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to