RE: string to number

2001-01-19 Thread Jeremy Allen
]] Sent: Thursday, January 18, 2001 10:12 AM To: CF-Talk Subject: RE: string to number Steve, As long as you keep your ranges as you have them in your If statements, the following formula should yield the correct result. I know this doesn't address the question that you asked, but others have

RE: string to number

2001-01-19 Thread Russel Madere
Drop the quotes. Cold Fusion uses type less variables and will convert strings to numbers easily. You need to build in checks to ensure that the passed form variables are indeed numeric before you do any math on them. Russel

RE: string to number

2001-01-18 Thread Holger Lockertsen
You want this: CFSET Grp = form.adult + form.children When setting quotes around it, CF assumes it's a string. rgds * Holger Lockertsen, Solutions Developer * Pixelduck AS - Nedre Slottsgate 5, N-0157 OSLO, Noreg/Norway * 23 31 03 04 / 91 83 20 51 * [EMAIL PROTECTED] *

RE: string to number

2001-01-18 Thread Simon Horwith
I think what you want CFSET Grp=(form.adult + form.children). (no quotes) ~Simon Simon Horwith Allaire Certified ColdFusion Instructor Certified ColdFusion Developer Fig Leaf Software 1400 16th St NW, # 220 Washington DC 20036 202.797.6570 (direct line) www.figleaf.com

RE: string to number

2001-01-18 Thread Cornillon, Matthieu
Steve, As long as you keep your ranges as you have them in your If statements, the following formula should yield the correct result. I know this doesn't address the question that you asked, but others have responded to that, and I just couldn't help fiddling. Hope you don't mind. CFSET

RE: string to number

2001-01-18 Thread Tim Painter
Take the quotes out of "form.adult + form.children" CFSET Grp=(form.adult + form.children) You can also use VAL val(form.adult) + val(form.children) tim p. -Original Message- From: Steve Doran [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 8:36 AM To: CF-Talk Subject:

RE: string to number

2001-01-18 Thread mherbene
- From: Cornillon, Matthieu [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 10:12 AM To: CF-Talk Subject: RE: string to number Steve, As long as you keep your ranges as you have them in your If statements, the following formula should yield the correct result. I know this doesn't address