﻿<?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?)  » Best practice to refer to a BO property in a BO function?</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Fri, 18 Sep 2026 02:53:20 GMT</lastBuildDate><ttl>20</ttl><item><title>Best practice to refer to a BO property in a BO function?</title><link>http://forum.strataframe.net/FindPost23398.aspx</link><description>When creating functions and methods in a BO, sometimes you may need to use a BO property like BO.FirstName but at the same time, check for BO.Count &gt; 0 must be done, I know that we can also refer to the property using Me.CurrentRow.Item(Business.bizItems.bizItemsFieldNames.FirstName.ToString).&lt;br&gt;
&lt;br&gt;
So my question is, which one is better to use and why?&lt;br&gt;</description><pubDate>Sun, 07 Jun 2009 22:10:45 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Best practice to refer to a BO property in a BO function?</title><link>http://forum.strataframe.net/FindPost23403.aspx</link><description>Thanks for the info.</description><pubDate>Sun, 07 Jun 2009 22:10:45 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Best practice to refer to a BO property in a BO function?</title><link>http://forum.strataframe.net/FindPost23399.aspx</link><description>[quote]So my question is, which one is better to use and why?&lt;BR&gt;[/quote]&lt;/P&gt;&lt;P&gt;Well, I don't know that I totally understand your question because in this example they are doing the same thing.&amp;nbsp; If you refer to the CurrentRow without a row being present, you will get a CurrentRowIndex &amp;lt; 0 exception.&amp;nbsp; In short, all references from within the BO in this example use the CurrentView (including the CurrentRow) as the CurrentRowIndex property is based off of the CurrentView.&amp;nbsp; The Count property also comes from the view, so in this example, all paths lead to using the CurrentView of the BO.</description><pubDate>Sun, 07 Jun 2009 18:42:48 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>