>Anyway, putting the int() in there means that I can do the suggested >above without using an evauluate(), so all's well that ends well. :o)
actually spike is right, the evaluate would be necessary if ia_id wasnt an integer for instance with evaluate <Cfset shite=0.5> <Cfset crap=evaluate(int(shite)+0.5)> <Cfoutput>crap=#crap#</cfoutput> crap=0.5 without evaluate <Cfset shite=0.5> <Cfset crap=int(shite+0.5)> <Cfoutput>crap=#crap#</cfoutput> crap=1 -----Original Message----- From: Tim Blair [mailto:[EMAIL PROTECTED]] Sent: 10 October 2002 12:32 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] CFMX -> CF5 > #1+1# is possible in CFMX, but not in previous versions. > the evaluate is redundant, this should work > this should work #int(invoice.ia_id+1)# Cheers guys, a solution and an explanation in quick succession. :o) > just out of curiousity, why have you got non integer ids? I haven't. I don't know why I put the int() in there. It must have been a Friday. Or a Monday. Possibly a Tuesday... ;o) Anyway, putting the int() in there means that I can do the suggested above without using an evauluate(), so all's well that ends well. :o) Ta. Tim. ------------------------------------------------------- Tim Blair Web Application Engineer, Rawnet Limited Direct Phone : +44 (0) 1344 393 441 Switchboard : +44 (0) 1344 393 040 ------------------------------------------------------- rawnet ltd Atrium Court Bracknell [EMAIL PROTECTED] Berkshire Tel : +44 (0) 1344 393 040 RG12 1BW, UK http://www.rawnet.com ------------------------------------------------------- This message may contain information which is legally privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any unauthorised disclosure, copying, distribution or use of this information is strictly prohibited. Such notification notwithstanding, any comments, opinions, information or conclusions expressed in this message are those of the originator, not of rawnet limited, unless otherwise explicitly and independently indicated by an authorised representative of rawnet limited. ------------------------------------------------------- -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] This email has been scanned for viruses by NetBenefit using Sophos anti-virus technology This email has been scanned for viruses by NetBenefit using Sophos anti-virus technology -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
