********************************************************************** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message **********************************************************************
Thanks Bryan, it's working fine now. -----Original Message----- From: Bryan F. Hogan [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 16:02 To: CF-Talk Subject: RE: error with a piece of cfscript code and I can't see what's wrong? Below is the corrected code, you had a few extra "("s in front of your isdefined <cfscript> If (NOT IsDefined("Form.business_types") AND IsDefined("Form.residents")) { session.ResidentsOnly = yes; } Else If (NOT IsDefined("Form.residents") AND IsDefined("Form.business_type")) { session.BusinessOnly = 'yes'; session.ListOfBusiness = "#Form.business_types#"; } Else { session.ResidentsAndBusiness = 'yes'; session.ListOfBusiness = "#Form.business_types#"; } </cfscript> -----Original Message----- From: Adams, Stephen [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 10:55 AM To: CF-Talk Subject: error with a piece of cfscript code and I can't see what's wrong? ********************************************************************** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ********************************************************************** Can anyone see what's wrong with this: <cfscript> If (NOT IsDefined("Form.business_types") AND (IsDefined("Form.residents")) { session.ResidentsOnly = yes; } Else If (NOT IsDefined("Form.residents")) AND (IsDefined("Form.business_type")) { session.BusinessOnly = yes; session.ListOfBusiness = "#Form.business_types#"; } Else { session.ResidentsAndBusiness = yes; session.ListOfBusiness = "#Form.business_types#"; } </cfscript> This is the error I keep getting: Error Diagnostic Information Just in time compilation error Invalid parser construct found on line 67 at position 79. ColdFusion was looking at the following text:{Invalid expression format. The usual cause is an error in the expression structure. The last successfully parsed CFML construct was a CFSCRIPT tag occupying document position (66:3) to (66:12). ********************************************************************** Westminster City Council switchboard: +44 20 7641 6000 ********************************************************************** This E-Mail may contain information which is privileged, confidential and protected from disclosure. If you are not the intended recipient of this E-mail or any part of it, please telephone Westminster City Council immediately on receipt. You should not disclose the contents to any other person or take copies. ********************************************************************** ______________________________________________________________________ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. 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