The number is above the maxint for CF 4.5. Before CF 4.5, maxint wasn't
enforced. I don't have the # for maxint in front of me right now, but I'm
pretty darn sure it's in the release notes....
here we go:
In ColdFusion 4.5 as opposed to CF 4.0.1, more extensive range-checking is
performed to determine whether an argument is an integer. This may lead to
situations where code which executes correctly on CF 4.0.1 results in an
error in CF 4.5. For example, the maximum value for the 1st argument in
FormatBaseN function is 2147483647 on some Windows NT machines. [13549]
=======================================================================
Raymond Camden, Cold Fusion Jedi Master for Syntegra (www.syntegra.com)
Allaire Certified Instructor and Member of Team Allaire
Email : [EMAIL PROTECTED]
ICQ UIN : 3679482
"My ally is the Force, and a powerful ally it is." - Yoda
> -----Original Message-----
> From: Mike Connolly [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 02, 2000 6:46 AM
> To: 'CF-Talk'
> Subject: RandRange Error in CF 4.5 Pro.
>
>
> Help.
>
> The following code is included in the source code for AbleCommerce, which
> works fine on CF 4.01...
>
> <CFSET NST2 = Int(((Now()-Int(Now())+RandRange(75634586,7904827159 ))))>
>
> .... but in CF4.5 Pro this code generates this error....
>
> Parameter 2 of RandRange which is now "7904827159" must be an integer
>
> Is this a bug in CF 4.5 Pro? Can anyone help,
>
> Thanks
>
> Mike
>
>
>
>
> -----------------------------------------------
> Any opinions expressed in this message are those of the
> individual and not necessarily the company. This message and any
> files transmitted with it are confidential and solely for the use
> of the intended recipient. If you are not the intended recipient
> or the person responsible for delivering to the intended
> recipient, be advised that you have received this message in
> error and that any use is strictly prohibited.
>
> Sapphire Technologies Ltd
> http://www.sapphire.net
> ------------------------------------------------------------------
> ------------
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf
_talk or send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.