﻿<?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 » Business Objects and Data Access (How do I?)  » BO.Count vs BO.CurrentDataTable.Rows.Count</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:59:36 GMT</lastBuildDate><ttl>20</ttl><item><title>BO.Count vs BO.CurrentDataTable.Rows.Count</title><link>http://forum.strataframe.net/FindPost18730.aspx</link><description>When I create a test project, these 2 properties always return the same value. Is this something to be relied upon or is there an underlying differenece? &lt;P&gt;I always ahve used the ..Rows.Count version but one of our Jr. guys has been using BO.Count and I'd hate to be bitten by this sometime in the future. Below is a sample of what I am referring to.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;[quote]&lt;FONT size=2&gt;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Dim&lt;/FONT&gt;&lt;FONT size=2&gt;&amp;nbsp;a &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;FONT size=2&gt; FSS.BO.Lookup.ActivityType&lt;/P&gt;&lt;P&gt;a.Fill()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Dim&lt;/FONT&gt;&lt;FONT size=2&gt; i &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; Int32 = a.Count (== 5) &lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Dim&lt;/FONT&gt;&lt;FONT size=2&gt; i2 &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; Int32 = a.CurrentDataTable.Rows.Count (==5)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;[/quote]</description><pubDate>Tue, 26 Aug 2008 10:35:15 GMT</pubDate><dc:creator>choyt</dc:creator></item><item><title>RE: BO.Count vs BO.CurrentDataTable.Rows.Count</title><link>http://forum.strataframe.net/FindPost18741.aspx</link><description>Thanks much...this is what I was concerned about.</description><pubDate>Tue, 26 Aug 2008 10:35:15 GMT</pubDate><dc:creator>choyt</dc:creator></item><item><title>RE: BO.Count vs BO.CurrentDataTable.Rows.Count</title><link>http://forum.strataframe.net/FindPost18738.aspx</link><description>I just checked the source code and Bo.Count = Bo.CurrentDataTable.DefaultView.Count = Bo.CurrentView.Count&lt;br&gt;
&lt;br&gt;
So, it could bite you, if you apply filters to the BO.</description><pubDate>Tue, 26 Aug 2008 10:10:19 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item></channel></rss>