IsDefined on a variable name that begins with a number throws error

2006-11-15 Thread Andrew Peterson
Hello, I've got a form with field names that begin with a number. On the action page, if I check for its existence - cfif isdefined(form.0806) - it tells me that Parameter 1 of function IsDefined, which is now form.0806, must be a syntactically valid variable name. Does anyone know of any

Re: IsDefined on a variable name that begins with a number throws error

2006-11-15 Thread Charlie Griefer
you're trying to get around a valid error :) CF variables cannot start with a numeric character and therefore you are dealing with syntactically invalid variable names. there are workarounds tho. cfif isDefined(form['0806']) might work. I know that array notation allows you to get away with

RE: IsDefined on a variable name that begins with a number throws error

2006-11-15 Thread Bobby Hartsfield
First, 0806 is an invalid variable name because it starts with asomething other than a letter and sooner or later, you will probably run into a wall but you CAN use it. Try this... cfset form['0806'] = 'duh' / cfoutput#form['0806']#/cfoutput I'd recommend coming up with a different naming

RE: IsDefined on a variable name that begins with a number throws error

2006-11-15 Thread Bobby Hartsfield
First, 0806 is an invalid variable name because it starts with something other than a letter Make that, something other than a letter or underscore :-) ..:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Charlie Griefer [mailto:[EMAIL PROTECTED]