﻿<?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?)  » Changing data type coming in and out of the object</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 03:10:57 GMT</lastBuildDate><ttl>20</ttl><item><title>Changing data type coming in and out of the object</title><link>http://forum.strataframe.net/FindPost10496.aspx</link><description>In&amp;nbsp;our Oracle (cough.. gag..) database, we are using a CHAR(1) to store boolean values (1 = true, 0 = false).&lt;/P&gt;&lt;P&gt;I would like to have my business object take the CHAR(1) and convert it to a .NET bool, and then when I am saving back to the database, convert the .NET bool to a CHAR(1).&lt;/P&gt;&lt;P&gt;Is there a way to do that?&lt;/P&gt;&lt;P&gt;Cheers!</description><pubDate>Mon, 23 Jul 2007 12:48:28 GMT</pubDate><dc:creator>Keith Harvey</dc:creator></item><item><title>RE: Changing data type coming in and out of the object</title><link>http://forum.strataframe.net/FindPost10516.aspx</link><description>So you got the custom code to work?</description><pubDate>Mon, 23 Jul 2007 12:48:28 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Changing data type coming in and out of the object</title><link>http://forum.strataframe.net/FindPost10502.aspx</link><description>Thanks for the help!</description><pubDate>Sat, 21 Jul 2007 19:38:07 GMT</pubDate><dc:creator>Keith Harvey</dc:creator></item><item><title>RE: Changing data type coming in and out of the object</title><link>http://forum.strataframe.net/FindPost10497.aspx</link><description>When you are in the BO Mapper, you might have noticed that large area at the bottom, the Custom Code area.  If you check the Custom Code button, you can put in the code that the strongly typed property will use (I think you just put in the Get/Set, not the entire property).  I'm guessing that you'd also need to set the type in the Custom Data Type (set that to boolean).  Then in the custom code area you'd write the code that would do the translation.  I haven't done this, so see the help file for more details.  However, it should be pretty straight forward.</description><pubDate>Fri, 20 Jul 2007 13:49:05 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item></channel></rss>