Try changing it to:
<cfif VARIABLES.ViewState.exists("Errors")>
<cfset anArray = VARIABLES.ViewState.getValue("Errors")>
<cfloop from="1" to="#arrayLen(anArray)#" index="i">
#anArray[i]#<br />
</cfloop>
</cfif>
Adrian
-----Original Message-----
From: Robert Rawlins - Think Blue
[mailto:[EMAIL PROTECTED]
Sent: 26 March 2007 15:24
To: CF-Talk
Subject: RE: Looping Over Array
Hello Adrian,
The Array defiantly contains some data, it seems to have an issue with my
syntax, I get the following error.
Message Invalid CFML construct found on line 10 at column 75.
Detail ColdFusion was looking at the following text:
[
The CFML compiler was processing:
an expression beginning with "VARIABLES.ViewState.getValue", on line 10,
column 36.This message is usually caused by a problem in the expressions
structure.
The body of a cfoutput tag beginning on line 10, column 26.
The body of a cfoutput tag beginning on line 10, column 26.
The body of a cfoutput tag beginning on line 10, column 26.
Thanks again.
Rob
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273717
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4