IF(StructKeyExists(form,Listgeat(fieldlist,i)) {
....
}
One of the reasons I like using Cfscript is to get rid of pound signs and quotes - seems more readable. Just my 02.
-mark
-----Original Message-----
From: Che Vilnonis [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 3:46 PM
To: CF-Talk
Subject: RE: <cfscript> question...
Using CF5. The error is...
Parameter 1 of function IsDefined which is now
"FORM[listgetat(FieldList,i)]" must be a syntactically valid variable name.
-----Original Message-----
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 4:31 PM
To: CF-Talk
Subject: RE: <cfscript> question...
don't you need {}'s around the FORM[listgetat(FieldList,i)] = "";
or if not, what error are you getting?
...tony
tony weeg
senior web applications architect
navtrak, inc.
www.navtrak.net
[EMAIL PROTECTED]
410.548.2337
-----Original Message-----
From: Che Vilnonis [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 4:26 PM
To: CF-Talk
Subject: <cfscript> question...
What am I doing wrong here?
<cfscript>
// Intialize List
FieldList =
"CustEmail,CustPassword,CustPassword2,BillFirstName,BillLastName,BillAddress
,BillAddress2,BillCity,BillState,BillZip,BillPhone";
// Loop thru list and define all FORM variables for(i=1; i LTE
listlen(FieldList); i = i + 1)
if (NOT isDefined("FORM[listgetat(FieldList,i)]"))
FORM[listgetat(FieldList,i)] = "";
</cfscript>
Che Vilnonis
Application Developer
Advertising Systems Incorporated
8470C Remington Avenue
Pennsauken, NJ 08110
p: 856.488.2211
f: 856.488.1990
www.asitv.com
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]