Problem with Coldfusion development in HomeSite

I am using Buedragon's Coldfusion for my application development. I am trying to append a string to a variable and enounter the following error message:

Access violation at address 00403A33 in Module 'Homesite+.exe'. Read of address 00000000.

In the below code, it does not like it when I replace the string "Please provide an Event_Date<br />" with "Please provide an Event Date<br />". All I am trying to do is to remove the "_" in the Event_Date and put a space instead to frame my sentence in simple english. But whenever I try to do it HomeSite+ pops up with the above error message.

<CFIF ISDEFINED("Event_Date")>
  <CFIF Event_Date EQ "">
    <CFSET flag=1>
    <CFSET Errormsg = Errormsg & "Please provide an Event_Date<br />">

xoxomosAsked:
Who is Participating?
 
usachrisk1983Connect With a Mentor Commented:
Also, no idea why Homesite would care of you put your <br> inside your string or not -- I put breaks in strings without problem, and also put other tags inside strings.  Here is an Adobe article on what to do for Access Violations.  It's basically just uninstall HomeSite, delete a registry key, and reinstall HomeSite.  If you have any trouble with the Windows Registry, please respond back with your version of Windows and I'd be happy to help:

http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_17507
0
 
73SpyderCommented:
 <CFSET Errormsg = Errormsg & "Please provide an Event_Date">

The <br/>  is causing the issue
0
 
73SpyderCommented:
Use it this way

<cfoutput>#errormsg#<br/></cfoutput>   Instead of adding it to  the string
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
xoxomosAuthor Commented:
Hi,
I am trying to append all the errors to a variable so I can display them later on the webpage. I believe your code will force me to output my error message directly instead. Any thoughts?
0
 
73SpyderConnect With a Mentor Commented:
Yes,   you could do this:

      
 <CFSET Errormsg = Errormsg & "Please provide an Event_Date  ,">

Then at the end, you can treat the string as a list and loop through the list to build the display.  As you loop through, you can put in the formatting that you want to.
0
 
usachrisk1983Commented:
Are you doing a find and replace in Homesite, or is this when you try and backspace the underscore and replace it with a space?
0
All Courses

From novice to tech pro — start learning today.