#rsoncology.Section# #rsoncology.Title# ------> #rsoncology.Title# Update Delete #rsoncology.Title# #rsoncology.Title# Update Delete [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => Scott [ip] => sthompson@Nebra [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 1 [islastshown] => [isfirstshown] => 1 [attachments] => [allattachments] => ) --> Syntax Help - Coldfusion - Getting Started

Syntax Help - Coldfusion - Getting Started

I am not a cold fusion developer, I am just trying to patch a program. Any help would be great I have a record set that returns values. One of the fields in the record set is called "isspanish" if the value is 0 I want the font of the title to stay black, but I want too change the value if it is a 1. Here is the code I have modified. The error is Invalid CFML construct found on line 72 at column 104. ColdFusion was looking at the following text: \" The line as after the cfelse ...

  1. #1

    Default Syntax Help

    I am not a cold fusion developer, I am just trying to patch a program. Any
    help would be great

    I have a record set that returns values. One of the fields in the record set
    is called "isspanish" if the value is 0 I want the font of the title to stay
    black, but I want too change the value if it is a 1. Here is the code I have
    modified. The error is Invalid CFML construct found on line 72 at column
    104.
    ColdFusion was looking at the following text:
    \"



    The line as after the cfelse I indicate the line with this ------>


    <cfoutput query="rsoncology">
    <cfif TempName is not "#rsoncology.Section#">
    <tr>
    <td colspan="3"><font size="2" face="Arial,
    Helvetica, sans-serif">#rsoncology.Section#</font></td>
    </tr>
    <cfset TempName = "#rsoncology.Section#">
    <cfset Lang = "#rsoncology.isspanish#">
    <tr>
    <cfif Lang is "0">
    <td width="80%"><font size="2" face="Arial,
    Helvetica, sans-serif"><a
    href="pdfs/#rsoncology.File_Name#">#rsoncology.Title#</a></font></td>
    <cfelse>
    ------> <td width="80%"><font size="2" color="#996600" face="Arial,
    Helvetica, sans-serif"><a
    href="pdfs/#rsoncology.File_Name#">#rsoncology.Title#</a></font></td>
    </cfif>
    <td width="13%"><font size="2" face="Arial,
    Helvetica, sans-serif"><a
    href="teaching_sheets_update.cfm?ID=#rsoncology.ID #">Update</a></font></td>
    <td width="7%"><font size="2" face="Arial,
    Helvetica, sans-serif"><a
    href="teaching_sheets_delete.cfm?ID=#rsoncology.ID #">Delete</a></font></td>
    </tr>
    <cfelse>
    <tr>
    <cfif Lang is "0">
    <td width="80%"><font size="2" face="Arial,
    Helvetica, sans-serif"><a
    href="pdfs/#rsoncology.File_Name#">#rsoncology.Title#</a></font></td>
    <cfelse>
    <td width="80%"><font size="2" color="#996600" face="Arial,
    Helvetica, sans-serif"><a
    href="pdfs/#rsoncology.File_Name#">#rsoncology.Title#</a></font></td>
    </cfif>
    <td width="13%"><font size="2" face="Arial,
    Helvetica, sans-serif"><a
    href="teaching_sheets_update.cfm?ID=#rsoncology.ID #">Update</a></font></td>
    <td width="7%"><font size="2" face="Arial,
    Helvetica, sans-serif"><a
    href="teaching_sheets_delete.cfm?ID=#rsoncology.ID #">Delete</a></font></td>
    </tr>
    </cfif></cfoutput>


    Scott Guest

  2. #2

    Default Re: Syntax Help

    Hi Scott,

    please use ## in font color for escaping # like this...

    td width="80%"><font size="2" color="##996600" face="Arial,
    Helvetica, sans-serif"><
    reenaroy Guest

  3. #3

    Default Re: Syntax Help

    Hi Scott,

    Your error message can be resolved by changing this line:
    color="#996600"
    to this:
    color="##996600"
    The double pound sign will allow an 'escape' of the single pound sign for the
    hex color code.

    Hope this helps,
    Suzy

    suzynas Guest

Similar Threads

  1. if/else tag syntax
    By negttid in forum Macromedia Flex General Discussion
    Replies: 8
    Last Post: March 20th, 02:15 AM
  2. ids and syntax
    By meltedown in forum PHP Development
    Replies: 5
    Last Post: December 23rd, 02:54 PM
  3. Need Help With Syntax!
    By Aaron Bertrand - MVP in forum ASP Database
    Replies: 10
    Last Post: August 7th, 03:44 PM
  4. Syntax
    By yma in forum ASP.NET General
    Replies: 1
    Last Post: July 3rd, 02:00 PM
  5. Help with DB2 Syntax.
    By sharads in forum IBM DB2
    Replies: 1
    Last Post: July 3rd, 09:04 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139