Link to home
Start Free TrialLog in
Avatar of xoxomos
xoxomos

asked on

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 />">

Avatar of 73Spyder
73Spyder

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

The <br/>  is causing the issue
Use it this way

<cfoutput>#errormsg#<br/></cfoutput>   Instead of adding it to  the string
Avatar of xoxomos

ASKER

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?
SOLUTION
Avatar of 73Spyder
73Spyder

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial