-----Original Message-----
From: Craig Dudley [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 12:04 PM
To: CF-Talk
Subject: RE: Another <cfscript> question.
Try the 'setvariable' function.
ie..
if (NOT isDefined("#listgetat(ErrorFlags,i)#")) {
setvariable(listgetat(ErrorFlags,i),"");}
-----Original Message-----
From: Che Vilnonis [mailto:[EMAIL PROTECTED]
Sent: 07 November 2003 17:04
To: CF-Talk
Subject: Another <cfscript> question.
Hello again.
I'm in the process of converting a lot of my code over to
<cfscript> blocks
and I can't get by this error.
<cfscript>
// Define error variables list.
ErrorFlags =
"CreateAccountFlag,ExistingAccountFlag,EmailFlag,EmailInvalidFlag,Passwo
rdFl
ag,Password2Flag,PasswordLengthFlag,Password2LengthFlag,PasswordNEQFlag,
Firs
tNameFlag,FirstNameInvalidFlag,LastNameFlag,LastNameInvalidFlag,AddressF
lag,
AddressInvalidFlag,Address2InvalidFlag,CityFlag,CityInvalidFlag,StateFla
g,Zi
pFlag,ZipInvalidFlag,PhoneFlag,PhoneInvalidFlag";
// Loop through the list and define all default values.
for(i=1; i LTE listlen(ErrorFlags); i = i + 1)
if (NOT isDefined("#listgetat(ErrorFlags,i)#"))
{listgetat(ErrorFlags,i) =
"";}
</cfscript>
The error is: Illegal left hand side of assignment near line 7,
column 51.
Left hand side cannot be a function call.
If this were a structure it would work. What am I doing wrong???
TIA...Che
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]