<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : [SOLVED] Format Currency</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : [SOLVED] Format Currency]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 20:20:10 +0000</pubDate>
  <lastBuildDate>Thu, 11 Jun 2009 10:29:21 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=14461</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[[SOLVED] Format Currency : Hi Jason,  Well, now I know...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14461&amp;PID=49862&amp;title=solved-format-currency#49862</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 14461<br /><strong>Posted:</strong> 11 June 2009 at 10:29am<br /><br />Hi Jason,<DIV>&nbsp;</DIV><DIV>Well, now I know it will work also with different locale settings, you did that test for me <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>btw can you remove all code in previous replies (except the working code of course hehehe) so other user can see what code to use.</DIV><DIV>&nbsp;</DIV><DIV>Thanks again.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 11 Jun 2009 10:29:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14461&amp;PID=49862&amp;title=solved-format-currency#49862</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] Format Currency : Also, thanks for helping me test...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14461&amp;PID=49852&amp;title=solved-format-currency#49852</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 14461<br /><strong>Posted:</strong> 11 June 2009 at 8:44am<br /><br />Also, thanks for helping me test it out in a different locale and reporting the bugs.]]>
   </description>
   <pubDate>Thu, 11 Jun 2009 08:44:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14461&amp;PID=49852&amp;title=solved-format-currency#49852</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] Format Currency : Glad to help Aaron, and sorry...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14461&amp;PID=49844&amp;title=solved-format-currency#49844</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 14461<br /><strong>Posted:</strong> 11 June 2009 at 7:26am<br /><br />Glad to help Aaron, and sorry for the bugs.]]>
   </description>
   <pubDate>Thu, 11 Jun 2009 07:26:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14461&amp;PID=49844&amp;title=solved-format-currency#49844</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] Format Currency : Hi, Would be nice if CJ could...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14461&amp;PID=49829&amp;title=solved-format-currency#49829</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 14461<br /><strong>Posted:</strong> 11 June 2009 at 3:50am<br /><br /><P>Hi,</P><DIV>Would be nice if CJ could implement this in ReportControl <img src="https://forum.codejock.com/smileys/smiley4.gif" border="0">&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Format property removes all zero's after decimal character (1,20 will be 1,2)&nbsp; and&nbsp;that's not what you want, if you are using currency values. </DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 11 Jun 2009 03:50:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14461&amp;PID=49829&amp;title=solved-format-currency#49829</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] Format Currency : Hi Jason,  Now it works OK and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14461&amp;PID=49819&amp;title=solved-format-currency#49819</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 14461<br /><strong>Posted:</strong> 11 June 2009 at 12:48am<br /><br />Hi Jason,<DIV>&nbsp;</DIV><DIV>Now it works OK and it doesn't matter what the user enters (grouping / decimal character) it will format value as should, also with values that start with zero (0,21)</DIV><DIV>&nbsp;</DIV><DIV>Thanks a lot <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 11 Jun 2009 00:48:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14461&amp;PID=49819&amp;title=solved-format-currency#49819</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] Format Currency : Hi Aaron,Sorry about that, as...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14461&amp;PID=49813&amp;title=solved-format-currency#49813</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 14461<br /><strong>Posted:</strong> 10 June 2009 at 6:37pm<br /><br />Hi Aaron,<br><br>Sorry about that, as I mentioned the code was only lightly tested so far. The problem stemmed from my misunderstanding of the Currency variable type in VB6. I thought that it would be internally stored with a "." for the decimal separator no matter what, but it appears that the implicit conversion to a string used the current locale format. The GetCurrencyFormat API requires the decimal separator to be a "."<br><br>I have modified the code (including an unrelated bugfix in the ConvertArbitraryLocaleNumberToUserLocale function), and this should be working now:<br><br><a href="uploads/20090610_183606_M&#111;ney&#070;ormat.zip" target="_blank">uploads/20090610_183606_MoneyFormat.zip</a><br>]]>
   </description>
   <pubDate>Wed, 10 Jun 2009 18:37:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14461&amp;PID=49813&amp;title=solved-format-currency#49813</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] Format Currency : Hi Jason,  Did you look at the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14461&amp;PID=49808&amp;title=solved-format-currency#49808</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 14461<br /><strong>Posted:</strong> 10 June 2009 at 3:00pm<br /><br />Hi Jason,<DIV>&nbsp;</DIV><DIV>Did you look at the problem I mentioned? I looked in Regional Settings Number and format = 1.234,56</DIV><DIV>So I set Grouping and Decimal symbol same as above and when I enter value: 0,10 it fails <img src="http://forum.codejock.com/smileys/smiley19.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>Thanks in advance</DIV><DIV><BR>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 10 Jun 2009 15:00:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14461&amp;PID=49808&amp;title=solved-format-currency#49808</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] Format Currency : There could be a bug, but here...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14461&amp;PID=49774&amp;title=solved-format-currency#49774</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 14461<br /><strong>Posted:</strong> 09 June 2009 at 4:19pm<br /><br />There could be a bug, but here is how it is supposed to work:<br><br>The textbox input has to be in the locale of your system as defined in the Regional Settings control panel. So if your number format is set to 1,234.55, then the input will have to be in that format.<br><br>If you want to use an arbitrary locale format for your input, you will have to use the ArbitraryLocaleNumberToCurrency() function on the input first (to convert it to a VB6 currency variable) and then pass that VB6 variable to the FormatMoney function for re-formatting. For example:<br><br>Regional Settings Number Format: 1,234.55<br>User Input in TextBox: 1.234,55<br>Send User Input to ArbitraryLocaleToCurrency("1.234,55", ".", ",", "") - Result = 1234.55 VB6 Currency Variable<br>Send Result of ArbitraryLocaleNumberToCurrency to FormatMoney(1234.55, decimal_Round, True, digitgrouping_Common, Chr$(128), ".", ",", True, False, negativestyle_Parentheses) Result = €1.234,55<br><br>if you regional settings are NOT set to "," grouping symbol and "." decimal symbol, then there is likely a bug and I will have to track it down.<br>]]>
   </description>
   <pubDate>Tue, 09 Jun 2009 16:19:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14461&amp;PID=49774&amp;title=solved-format-currency#49774</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] Format Currency : Hi Jason,  I have to format...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14461&amp;PID=49773&amp;title=solved-format-currency#49773</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 14461<br /><strong>Posted:</strong> 09 June 2009 at 4:06pm<br /><br />Hi Jason,<DIV>&nbsp;</DIV><DIV>I have to format following values (for example)</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; €&nbsp;&nbsp;&nbsp; 0,10</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;€&nbsp;&nbsp;&nbsp; 0,30</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;€&nbsp;&nbsp;&nbsp;&nbsp;0,45</DIV><DIV>&nbsp;</DIV><DIV>Just type these values into textbox and it will fail.</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 09 Jun 2009 16:06:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14461&amp;PID=49773&amp;title=solved-format-currency#49773</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] Format Currency : The test app should work like...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14461&amp;PID=49771&amp;title=solved-format-currency#49771</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 14461<br /><strong>Posted:</strong> 09 June 2009 at 3:34pm<br /><br />The test app should work like this:<br><br>1) Change the Grouping symbol to "." <br>2) Change the decimal symbol to ","<br>3) Type a number into the "User Locale Currency" (formatted to youcurrent locale format as defined in your regional settings) and thenclick Convert. You should see something like this:<br><br><br><img src="uploads/20090609_153022_&#102;ormatm&#111;ney.jpg" height="343" width="597" border="0"><br><br>So the amount as originally typed must be in your current locale format so that CCur() can convert it to a VB6 Currency type. That value is then converted to an arbitrary locale format and returned as a string.<br><br>Or are you trying to accomplish something else?<br>]]>
   </description>
   <pubDate>Tue, 09 Jun 2009 15:34:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14461&amp;PID=49771&amp;title=solved-format-currency#49771</guid>
  </item> 
 </channel>
</rss>