in CF5 arguments is an array:
try: IsDefined("FORM.#ARGUMENTS[1]#")
I think that will work on MX too.
HTH
Bert
----- Original Message -----
From: Adrian Lynch <[EMAIL PROTECTED]>
Date: Tue, 31 Aug 2004 16:22:29 +0100
Subject: Second Pair Of Eyes
To: CF-Talk <[EMAIL PROTECTED]>
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]
- Second Pair Of Eyes Adrian Lynch
- Re: Second Pair Of Eyes Bert Dawson
- Re: Second Pair Of Eyes Ray Champagne
- RE: Second Pair Of Eyes Adrian Lynch
- Re: Second Pair Of Eyes Qasim Rasheed
- RE: Second Pair Of Eyes d.a.collie
- RE: Second Pair Of Eyes Gavin Brook
- Re: Second Pair Of Eyes S . Isaac Dealey
- RE: Second Pair Of Eyes Pascal Peters
- RE: Second Pair Of Eyes Dave Watts
- RE: Second Pair Of Eyes Pascal Peters
- RE: Second Pair Of Eyes S . Isaac Dealey