Re: Error clearing dynamic Client Variables.
Mixing single and double quotes in your isdefined statement - Original Message - From: Angel Stewart [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, December 10, 2001 1:31 PM Subject: Error clearing dynamic Client Variables. 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,'mmdd') #)#) CFOUTPUT #Evaluate(Client.Comment_#Evaluate(#DateFormat(CurrentDate,'mmdd') #)#)# /CFOUTPUT CFSET temp = DeleteClientVariable(Client.Comment_#Evaluate(#DateFormat(CurrentDate, 'mmdd')#)#) /CFIF CFSET CurrentDate=DATEADD(d,1,#CurrentDate#) !--- Advance the current date by one day --- CFSET CurrentDate = DateFormat(#CurrentDate#,'mm/dd/') /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
RE: Error clearing dynamic Client Variables.
The IsDefined statement works.. It drops into the CFIF statement correctly..and then it is supposed to delete the client variables. The Deleteclientvariable is the one that isn't working. -Angel -Original Message- From: Don Vawter [mailto:[EMAIL PROTECTED]] Mixing single and double quotes in your isdefined statement - Original Message - From: Angel Stewart [EMAIL PROTECTED] CFSET CurrentDate= #StartDate# cfloop CONDITION=#CurrentDate# LTE #EndDate# CFIF IsDefined(Client.Comment_#Evaluate(#DateFormat(CurrentDate,'mmdd ') #)#) CFOUTPUT #Evaluate(Client.Comment_#Evaluate(#DateFormat(CurrentDate,'mmdd') #)#)# /CFOUTPUT CFSET temp = DeleteClientVariable(Client.Comment_#Evaluate(#DateFormat(CurrentDat e, 'mmdd')#)#) /CFIF CFSET CurrentDate=DATEADD(d,1,#CurrentDate#) !--- Advance the current date by one day --- CFSET CurrentDate = DateFormat(#CurrentDate#,'mm/dd/') /CFLOOP ~~ 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
Re: Error clearing dynamic Client Variables.
OK but wouldn't if be a lot simpler to have your isdefined like this: CFIF IsDefined(client.Comment_ DateFormat(CurrentDate,'mmdd') ) and CFSET temp = DeleteClientVariable(Client.Comment_ DateFormat(CurrentDate,'mmdd')) why do you need all the extra evaluates etc. - Original Message - From: Angel Stewart [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, December 10, 2001 1:44 PM Subject: RE: Error clearing dynamic Client Variables. The IsDefined statement works.. It drops into the CFIF statement correctly..and then it is supposed to delete the client variables. The Deleteclientvariable is the one that isn't working. -Angel -Original Message- From: Don Vawter [mailto:[EMAIL PROTECTED]] Mixing single and double quotes in your isdefined statement - Original Message - From: Angel Stewart [EMAIL PROTECTED] CFSET CurrentDate= #StartDate# cfloop CONDITION=#CurrentDate# LTE #EndDate# CFIF IsDefined(Client.Comment_#Evaluate(#DateFormat(CurrentDate,'mmdd ') #)#) CFOUTPUT #Evaluate(Client.Comment_#Evaluate(#DateFormat(CurrentDate,'mmdd') #)#)# /CFOUTPUT CFSET temp = DeleteClientVariable(Client.Comment_#Evaluate(#DateFormat(CurrentDat e, 'mmdd')#)#) /CFIF CFSET CurrentDate=DATEADD(d,1,#CurrentDate#) !--- Advance the current date by one day --- CFSET CurrentDate = DateFormat(#CurrentDate#,'mm/dd/') /CFLOOP ~~ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm 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
Re: Error clearing dynamic Client Variables.
I don't understand why you need the evaluate function inside the isdefined. - Original Message - From: Angel Stewart [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, December 10, 2001 3:31 PM Subject: Error clearing dynamic Client Variables. 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,'mmdd') #)#) CFOUTPUT #Evaluate(Client.Comment_#Evaluate(#DateFormat(CurrentDate,'mmdd') #)#)# /CFOUTPUT CFSET temp = DeleteClientVariable(Client.Comment_#Evaluate(#DateFormat(CurrentDate, 'mmdd')#)#) /CFIF CFSET CurrentDate=DATEADD(d,1,#CurrentDate#) !--- Advance the current date by one day --- CFSET CurrentDate = DateFormat(#CurrentDate#,'mm/dd/') /CFLOOP The IsDefined() statement works, but the DeleteClientVariable statement doesn't. IT doesn't delete anything :-\ -Gel ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm 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
RE: Error clearing dynamic Client Variables.
I just had this same problem. The problem is that you are not supposed to use the word client. in the deleteclient variable statement. For example: cfset result = deleteclientvariable(myVar) --- Correct Way. instead of: cfset result = deleteclientvariable(client.myVar) --- Wrong Way. Hope this helps. -Original Message- From: Angel Stewart [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 12:44 PM To: CF-Talk Subject: RE: Error clearing dynamic Client Variables. The IsDefined statement works.. It drops into the CFIF statement correctly..and then it is supposed to delete the client variables. The Deleteclientvariable is the one that isn't working. -Angel -Original Message- From: Don Vawter [mailto:[EMAIL PROTECTED]] Mixing single and double quotes in your isdefined statement - Original Message - From: Angel Stewart [EMAIL PROTECTED] CFSET CurrentDate= #StartDate# cfloop CONDITION=#CurrentDate# LTE #EndDate# CFIF IsDefined(Client.Comment_#Evaluate(#DateFormat(CurrentDate,'mmdd ') #)#) CFOUTPUT #Evaluate(Client.Comment_#Evaluate(#DateFormat(CurrentDate,'mmdd') #)#)# /CFOUTPUT CFSET temp = DeleteClientVariable(Client.Comment_#Evaluate(#DateFormat(CurrentDat e, 'mmdd')#)#) /CFIF CFSET CurrentDate=DATEADD(d,1,#CurrentDate#) !--- Advance the current date by one day --- CFSET CurrentDate = DateFormat(#CurrentDate#,'mm/dd/') /CFLOOP ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm 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