That #i# in the error message should be #Variables.TestIndex#
That isn't the poblem.
Todd Ashworth
----- Original Message -----
From: "Todd Ashworth" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 26, 2001 3:44 PM
Subject: array value not found???
| I have thise code:
|
| <cfset Request.arrClassListFromGroupID = ArrayNew(1)>
| <cfset temp = ArraySet(Request.arrClassListFromGroupID, 1, 7, "0")>
|
| <cfloop from="1" to="7" index="Variables.TestIndex">
| <cfoutput>
|
#Evaluate('Request.arrClassListFromGroupID[#Variables.TestIndex#]')#
| </cfoutput>
| </cfloop>
|
| I keep getting this message:
|
| Error Diagnostic Information
|
| An error occurred while evaluating the expression:
|
|
| #Evaluate('Request.arrClassListFromGroupID[#i#]')#
| Error near line 155, column
|
40. ------------------------------------------------------------------------
| --------
| An error has occurred while processing the expression:
|
| Request.arrClassListFromGroupID[1]
|
|
| Error near line 1, column 34.
|
|
| --------------------------------------------------------------------------
--
| ----
|
| Error resolving parameter VARIABLES.ARRCLASSLISTFROMGROUPID
|
|
| The specified variable name cannot be found. This problem is very likely
due
| to the fact that you have misspelled the variable name.
|
|
|
| Shouldn't I get a '0' ??
|
| Todd Ashworth
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists