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 />">
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 />">
Use it this way
<cfoutput>#errormsg#<br/>< /cfoutput> Instead of adding it to the string
<cfoutput>#errormsg#<br/><
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The <br/> is causing the issue