﻿<?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  » Browse Dialog</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 07:02:23 GMT</lastBuildDate><ttl>20</ttl><item><title>Browse Dialog</title><link>http://forum.strataframe.net/FindPost12559.aspx</link><description>I have a browse dialog that is using a business object to populate a combo for a search field, the combo is populating fine however after making a selection&amp;nbsp;I get the following error&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/89600f03-fb7e-4cfd-9b7a-6970.png"&gt;&lt;/P&gt;&lt;P&gt;the combo box's value member is a string&amp;nbsp;and the field to be searched is a string&amp;nbsp;, &lt;/P&gt;&lt;P&gt;It looks like it failing on &lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;llReturn = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;CType&lt;/FONT&gt;&lt;FONT size=2&gt;(.SelectedValue, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Integer&lt;/FONT&gt;&lt;FONT size=2&gt;) &amp;lt;&amp;gt; -1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;P&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Tue, 13 Nov 2007 11:35:16 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Browse Dialog</title><link>http://forum.strataframe.net/FindPost12664.aspx</link><description>We also made some changes so that you can have non integer values as the values of the combo box for GUIDs and strings and such.&amp;nbsp; Trent should be posting an update soon with the changes.</description><pubDate>Tue, 13 Nov 2007 11:35:16 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Browse Dialog</title><link>http://forum.strataframe.net/FindPost12662.aspx</link><description>Yep, we went back and revisited that and that is exactly what we did, too.</description><pubDate>Tue, 13 Nov 2007 11:34:11 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Browse Dialog</title><link>http://forum.strataframe.net/FindPost12591.aspx</link><description>Ben,&lt;/P&gt;&lt;P&gt;It looks like the&amp;nbsp;-1 was used as a value for "Not Used" in the combo which is added when the combo is created, thus the test was to exclude Not Used from the search.&lt;/P&gt;&lt;P&gt;I changed the code to look at selected index which seems to work ok. i'll let you know if it doesnt.&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;llReturn = .SelectedIndex &amp;gt; 0&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;&amp;nbsp;Paul</description><pubDate>Thu, 08 Nov 2007 15:07:41 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Browse Dialog</title><link>http://forum.strataframe.net/FindPost12590.aspx</link><description>Yeah&amp;nbsp;I was just about to say "Houston we have a problem".&amp;nbsp;</description><pubDate>Thu, 08 Nov 2007 14:56:39 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Browse Dialog</title><link>http://forum.strataframe.net/FindPost12584.aspx</link><description>Let me know how it works, btw.&amp;nbsp; What I've tested here works, but make sure it works for your search field, too.</description><pubDate>Thu, 08 Nov 2007 14:32:00 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Browse Dialog</title><link>http://forum.strataframe.net/FindPost12583.aspx</link><description>Thanks Ben, I made tha change here as well.&lt;/P&gt;&lt;P&gt;Paul</description><pubDate>Thu, 08 Nov 2007 14:29:30 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Browse Dialog</title><link>http://forum.strataframe.net/FindPost12573.aspx</link><description>Yeah, not only is the .SelectedValue not always a System.Int32, but why would -1 not be a valid value?&amp;nbsp; &lt;/P&gt;&lt;P&gt;Oh well, I've changed that line to this:&lt;/P&gt;&lt;FONT size=1&gt;&lt;P&gt;llReturn = .SelectedValue &lt;/FONT&gt;&lt;FONT color=#0000ff size=1&gt;IsNot&lt;/FONT&gt;&lt;FONT size=1&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=1&gt;Nothing&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;Since you're building the source code, I'll let you change it on your end, too.&amp;nbsp; But if you want me to post the DLLs for it, just let me know :)</description><pubDate>Thu, 08 Nov 2007 14:12:23 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Browse Dialog</title><link>http://forum.strataframe.net/FindPost12572.aspx</link><description>Hrm... not sure why that's there... there's no reason for it to force the value to be an integer.&amp;nbsp; I'll look into it.</description><pubDate>Thu, 08 Nov 2007 14:06:47 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>