Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 528
  • Last Modified:

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

0
xoxomos
Asked:
xoxomos
  • 3
  • 2
2 Solutions
 
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
 
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
Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

 
73SpyderCommented:
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
 
usachrisk1983Commented:
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

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now