How would I get rid of the evaluates in the following code?

Thanks,

T

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
         <title>Untitled</title>
</head>

<body>
<!--- Set up the fields array --->
<cfset FieldInfo=ArrayNew(2)>
<!--- Array layout:
[FieldName][Length][Label][Type][Validation]
--->
<cfset Field1="RegNumber,10,Registration Number,Text,,">
<cfset Field2="FirstName,40,First Name,Text,,">
<cfset Field3="LastName,40,Last Name,Text,,">
<cfset Field4="Street,40,Street,Text,,">
<cfset Field5="City,40,City,Text,,">
<cfset Field6="Province,2,Province,Text,,">
<cfset Field7="Country,40,Country,Text,,">
<cfset Field8="PostalCode,7,Postal Code,Text,,">
<cfset Field9="PhoneNumber,12,Phone Number,Text,,">
<cfset Field10="EMailAddress,40,EMail Address,Text,,">
<cfset Field11="EMailAddress,40,EMail Address,Text,,">
<cfset Field12="PlaceOfBirth,10,Place Of Birth,Text">
<cfset Field13="DateOfBirth,10,Date Of Birth,dd/mm/yyyy">
<cfset Field14="PlaceOfDeath,10,Place Of Death,Text">
<cfset Field15="DateOfDeath,10,Date Of Death,dd/mm/yyyy">
<cfset Field16="RelationshipTypeID,2,RelationshipType,,">
<cfset TotalFields=16>

<cfloop index="FieldNumber" from="1" to="#TotalFields#">
         <cfset CurrentFieldName="Field"&FieldNumber>
         <cfloop index="Data" from="1" 
to="#ListLen(Evaluate(CurrentFieldName))#">
                 <cfset 
FieldInfo[FieldNumber][Data]=ListGetAt(Evaluate(CurrentFieldName),Data)>
         </cfloop>
</cfloop>

<cfloop index="FieldNumber" from="1" to="#TotalFields#">
         <cfset CurrentFieldName="Field"&FieldNumber>
         <cfloop index="Data" from="1" 
to="#ListLen(Evaluate(CurrentFieldName))#">
                 <CFOUTPUT>
                         #FieldInfo[FieldNumber][Data]#
                 </CFOUTPUT>
         </cfloop>
         <br>
</cfloop>

</body>
</html>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to