﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Issues  » Business Layer Bug</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 02:35:38 GMT</lastBuildDate><ttl>20</ttl><item><title>Business Layer Bug</title><link>http://forum.strataframe.net/FindPost26310.aspx</link><description>I'm using a browse dialog with a view. In order to be able to select a record from the results I've defined a primary key on the view that is made up of two character fields in the view; Case# and CaseLastName. This combination gives me a unique key. The issue I'm running into is that CaseLastName may contain a single quote (e.g. O'REILLY). When this happens I get an error message saying "Syntax error: Missing operand after 'REILLY' operator."&lt;P&gt;I've traced the problem to following line (2845) in BusinessLayer.vb&lt;/P&gt;&lt;P style="MARGIN: 0in 0in 10pt" class=MsoNormal&gt;&lt;SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt;lcSelect &amp;amp;= &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Me&lt;/SPAN&gt;&lt;FONT color=#000000&gt;.PrimaryKeyFields(lnCnt) &amp;amp; &lt;/FONT&gt;&lt;SPAN style="COLOR: #a31515"&gt;"='"&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &amp;amp; PrimaryKeyValues(lnCnt).ToString &amp;amp; &lt;/FONT&gt;&lt;SPAN style="COLOR: #a31515"&gt;"'"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 0in 0in 10pt" class=MsoNormal&gt;&lt;SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="COLOR: #a31515"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;FONT color=#1f5080 face=Verdana&gt;I'd like to suggest the following fix to take into account that a&amp;nbsp;character primary key may contain single quotes. &lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="COLOR: #a31515"&gt;&lt;o:p&gt;&lt;FONT color=#1f5080 face=Verdana&gt;I've added the fix locally and so far it's solved my problem and doesn't appear to introduce any other issues.&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="COLOR: #a31515"&gt;&lt;o:p&gt;&lt;FONT color=#1f5080 face=Verdana&gt;&lt;P style="MARGIN: 0in 0in 10pt" class=MsoNormal&gt;&lt;SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt;lcSelect &amp;amp;= &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Me&lt;/SPAN&gt;&lt;FONT color=#000000&gt;.PrimaryKeyFields(lnCnt) &amp;amp; &lt;/FONT&gt;&lt;SPAN style="COLOR: #a31515"&gt;"='"&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &amp;amp; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;CStr&lt;/SPAN&gt;&lt;FONT color=#000000&gt;(PrimaryKeyValues(lnCnt)).Replace(&lt;/FONT&gt;&lt;SPAN style="COLOR: #a31515"&gt;"'"&lt;/SPAN&gt;&lt;FONT color=#000000&gt;, &lt;/FONT&gt;&lt;SPAN style="COLOR: #a31515"&gt;"''"&lt;/SPAN&gt;&lt;FONT color=#000000&gt;) &amp;amp; &lt;/FONT&gt;&lt;SPAN style="COLOR: #a31515"&gt;"'"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 0in 0in 10pt" class=MsoNormal&gt;&lt;SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="COLOR: #a31515"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;</description><pubDate>Mon, 08 Mar 2010 09:23:23 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: Business Layer Bug</title><link>http://forum.strataframe.net/FindPost26330.aspx</link><description>Fixed and in the next build.  Thanks for the suggestion. :)</description><pubDate>Mon, 08 Mar 2010 09:23:23 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>