Hi folks!

Can anyone tell me why I am getting erorrs with this code?

I am trying to delete all my client.comments_#whatever# variables. 

 <CFSET CurrentDate= #StartDate#> 
 
<cfloop CONDITION="#CurrentDate# LTE #EndDate#"> 
      
      
     <CFIF
IsDefined("Client.Comment_#Evaluate("#DateFormat(CurrentDate,'mmddyyyy')
#")#")> 
                <CFOUTPUT>
#Evaluate("Client.Comment_#Evaluate("#DateFormat(CurrentDate,'mmddyyyy')
#")#")# </CFOUTPUT>            
                
         

                 <CFSET temp =
DeleteClientVariable("Client.Comment_#Evaluate("#DateFormat(CurrentDate,
'mmddyyyy')#")#")> 
                     
 
     </CFIF> 
      
<CFSET CurrentDate=DATEADD("d",1,#CurrentDate#)> <!--- Advance the
current date by one day ---> 
<CFSET CurrentDate = DateFormat(#CurrentDate#,'mm/dd/yyyy')> 
 
</CFLOOP>

The IsDefined() statement works, but the DeleteClientVariable statement
doesn't.

IT doesn't delete anything :-\

-Gel
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to