get the error with cfinsert and cfupdate.
Thanks,
Andrew
-----Original Message-----
From: chris kief [mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2003 5:00 PM
To: CF-Talk
Subject: RE: CF MX 6.1 Migration issue
StructDelete on the Form scope works just fine, as does setting form values:
<cfdump var="#form#">
<cfset form.foo = "hello">
<cfdump var="#form#">
<cfset StructDelete(form, "foo")>
<cfdump var="#form#">
chris
________________________________________
From: Matt Liotta [mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2003 1:49 PM
To: CF-Talk
Subject: Re: CF MX 6.1 Migration issue
> <cfloop list="#variables.my_table_fields#" index="x">
>
> <CFSET structDelete(form,#x#)>
>
> <cfparam name="form.#x#" default="#qSelProgTable["#x#"]#">
>
> </cfloop>
>
I don't believe you can use StructDelete() on scopes. I would rewrite
the code as follows.
<cfloop list="#variables.my_table_fields#" index="x">
<cfif StructKeyExists(form, x)>
<cfset form[x] = qSelProgTable[x]>
</cfif>
</cfloop>
Although, you may not be able to set values in the form scope either as
some scopes have become read-only.
Matt Liotta
President & CEO
Montara Software, Inc.
http://www.MontaraSoftware.com
(888) 408-0900 x901
________________________________________
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

