<CFSet a = Evaluate("Form."& GetAllContactTypes.PK_ContactType_ID)>
or just
<CFSet a = Form.GetAllContactTypes.PK_ContactType_ID>
instead of this
<CFSet a = #Evaluate("Form."&"#GetAllContactTypes.PK_ContactType_ID#")#>
You do not need the pounds inside the evaluate statement. When in a cfset tag, unless wrapped in quotes, CF will treat the string as a variable.
>Good job - thx
>
>
>
><CFSET a = Form[GetAllContactTypes.PK_ContactType_ID]> works
>
>
>
>Shaz
>
>
>
> _____
>
>From: JediHomer [mailto:[EMAIL PROTECTED]
>Sent: 24 June 2004 10:58
>To: CF-Talk
>Subject: Re: Evaluate?
>
>
>
>Have you tried CFDumping the Form on that page to see if CF can see
>the form field
>
>Try changing the code to something like
>
><CFSET a = Form[GetAllContactTypes.PK_ContactType_ID]>
>
>maybe wrapping it with a
>
><CFIF StructKeyExists(Form, GetAllContactTypes.PK_ContactType_ID)>
>
>HTH
>
>----- Original Message -----
>From: Shahzad.Butt <[EMAIL PROTECTED]>
>Date: Thu, 24 Jun 2004 10:48:34 +0100
>Subject: Evaluate?
>To: CF-Talk <[EMAIL PROTECTED]>
>
>Hello - can you please check the code below
>
><CFSet GetAllContactTypes.PK_ContactType_ID =
>"CAA07070-CD2A-46D6-951F-653630BFD539">
>
><cfoutput>
><CFSet a = #Evaluate("Form."&"#GetAllContactTypes.PK_ContactType_ID#")#>
>
></cfoutput>
>
> _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

