Elliot, 

>>"001948F" vs "001948F"

this seems to be very weird. both values have a "F" at the end. Surely
that's seen as a string in both cases?

there must be something else going on here...perhaps an internal
reserved format like {ts 'whatever'} or a hex value or something? worth
investigating, methinks (hard to find "gotcha" pending...)

2c
barry.b




-----Original Message-----
From: Elliot Russo [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 1 April 2004 1:12 PM
To: CFAussie Mailing List
Subject: [cfaussie] Re: Simple test fails with javacast error

"001948F" vs "001948F"

The equality check is obviously trying to convert to number because the
strings look like numbers. The simple fix was to add the same char to
the
beginning of each value ie.

"_" & qCheck.COURSECRICOSCDE neq "_" & arguments.COURSECRICOSCDE

all happy. I was just curious that I have never struck this before.

Elliot

"Nick Gorst" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
>
> What are the actual values being compared
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Elliot
Russo
> Sent: Thursday, 1 April 2004 11:18 AM
> To: CFAussie Mailing List
> Subject: [cfaussie] Simple test fails with javacast error
>
>
> Hi,
>
> I'm testing for equality of two values which i have done a *billion*
times
> before
>
> qCheck.COURSECRICOSCDE neq arguments.COURSECRICOSCDE
>
> but I'm getting
>
> the value 001948F (string) cannot be converted to a number
>
> extended rubbish...
>
>
>      coldfusion.runtime.Cast$NumberConversionException: The value
"001948F"
> cannot be converted to a number at
> coldfusion.runtime.Cast._double(Cast.java:479) ....
>
>
> They are both strings !!!!!!!!!!!!! Why is it casting!!!!!
>
>
> MX 6.1/Win2K
>
>
>
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To
> unsubscribe send a blank email to
[EMAIL PROTECTED]
>
> MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
> http://www.mxdu.com/ + 24-25 February, 2004
>
>
>



---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to