Thanks Rau, the # are to evaluate ARGUMENTS.formName so it becomes
IsDefined("FORM.aNamePassedIn").

Thanks Bert, I thought it might be something like that.

Cheers

Ade

-----Original Message-----
From: Ray Champagne [mailto:[EMAIL PROTECTED]
Sent: 31 August 2004 16:31
To: CF-Talk
Subject: Re: Second Pair Of Eyes

You don't need the #'s inthe isDefined - just the FORM.whatever variable.

I don't have a means to test this right now, but this jumped out at me.

Rau

At 11:22 AM 8/31/2004, you wrote:
>Can anyone see something wrong with this, working on CFMX but failing on
CF5
>
><cfscript>
>function formValue(formName, defaultValue) {
>
>         if ( IsDefined("FORM.#ARGUMENTS.formName#") ) {
>                 return HTMLEditFormat(FORM["#ARGUMENTS.formName#"]);
>         } else {
>                 return HTMLEditFormat(ARGUMENTS.defaultValue);
>         }
>
>}
></cfscript>
>
>Error resolving parameter ARGUMENTS.FORMNAME
>
>
>Is this ok on CF5..?
>
>         IsDefined("FORM.#ARGUMENTS.formName#")
>
>What about...
>
>         FORM["#ARGUMENTS.formName#"]
>
>Thanks, just need someone else to look at it as it seems ok to me.
>
>Ade
>
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to