<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1003330" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1003330</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/form-mask#comment-1014642</link>
    <description> &lt;p&gt;FANTASTIC!!!&lt;/p&gt;
&lt;p&gt;Thanx very very much!!!!&lt;/p&gt;
&lt;p&gt;Nick&lt;/p&gt;
 </description>
     <pubDate>Tue, 15 Feb 2000 15:12:00 +0000</pubDate>
 <dc:creator>Coddy</dc:creator>
 <guid isPermaLink="false">comment 1014642 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/form-mask#comment-1014641</link>
    <description> &lt;p&gt;There is a &#039;formatCurrency&#039; function in ASP which would convert 1000000 to $1,000,000.00&lt;/p&gt;
&lt;p&gt;All you need to do is to change &#039;,&#039; to &#039;.&#039;&lt;/p&gt;
&lt;p&gt;This can be done using the following:&lt;/p&gt;
&lt;p&gt;Function ToCurrency2(pAmount)&lt;/p&gt;
&lt;p&gt;    ToCurrency2 = Replace(FormatCurrency(pAmount), &quot;,&quot;, &quot;.&quot;)&lt;/p&gt;
&lt;p&gt;End Function&lt;/p&gt;
&lt;p&gt;This is a definitely easier algorithm.&lt;br /&gt;
I hope this helped you.&lt;/p&gt;
&lt;p&gt;Eugene Grinberg &lt;a href=&quot;http://www.interprosolution.com&quot; class=&quot;bb-url&quot;&gt;http://www.interprosolution.com&lt;/a&gt;&lt;br /&gt;
FREE Tools and Services for Webmasters&lt;/p&gt;
 </description>
     <pubDate>Mon, 14 Feb 2000 19:29:00 +0000</pubDate>
 <dc:creator>Eugene Grinberg</dc:creator>
 <guid isPermaLink="false">comment 1014641 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/form-mask#comment-1014640</link>
    <description> &lt;p&gt;Thanks Eugene!&lt;br /&gt;
If it&#039;s not a trouble, can you describe the first method?(Using FormatDate- change , with a .)&lt;/p&gt;
&lt;p&gt;Thanx a lot!!!&lt;/p&gt;
&lt;p&gt;Coddy&lt;/p&gt;
 </description>
     <pubDate>Mon, 14 Feb 2000 05:17:00 +0000</pubDate>
 <dc:creator>Coddy</dc:creator>
 <guid isPermaLink="false">comment 1014640 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/form-mask#comment-1014639</link>
    <description> &lt;p&gt;Suppose a user entered 1234567.89 and you need to convert it to $1.234.567.89&lt;/p&gt;
&lt;p&gt;First Method:&lt;br /&gt;
You could use a &#039;formatCurrency&#039; function to covert it to $1,234,567.89 and then replace all commas with a &#039;.&#039;&lt;/p&gt;
&lt;p&gt;Second Method:&lt;br /&gt;
You can implement the following algorithm (I tested it and had no problems with it, but if you find one, be sure to tell me, and I&#039;ll fix it):&lt;/p&gt;
&lt;p&gt;Function ToCurrency(pAmount)&lt;br /&gt;
   Dim vTemp, vCurrency, i, vOffset&lt;/p&gt;
&lt;p&gt;   vTemp = CStr(Fix(CDbl(pAmount)))&lt;/p&gt;
&lt;p&gt;   vOffset = Len(vTemp) - Fix(Len(vTemp) / 3) * 3&lt;/p&gt;
&lt;p&gt;   For i = 0 To Round(Len(vTemp) / 3)&lt;br /&gt;
      If i = 0 Then&lt;br /&gt;
         vCurrency = Left(vTemp, vOffset)&lt;br /&gt;
      End If&lt;/p&gt;
&lt;p&gt;      If i &amp;lt;&amp;gt; Round(Len(vTemp) / 3) Then&lt;br /&gt;
         If Len(vCurrency) &amp;lt;&amp;gt; 0 Then&lt;br /&gt;
            vCurrency = vCurrency &amp;amp; &quot;.&quot;&lt;br /&gt;
         End If&lt;/p&gt;
&lt;p&gt;         vCurrency = vCurrency &amp;amp; Mid(vTemp, 1 + vOffset + i * 3, 3)&lt;br /&gt;
      End If&lt;br /&gt;
   Next&lt;/p&gt;
&lt;p&gt;   If Len(vTemp) &amp;lt; Len(pAmount) Then&lt;br /&gt;
      vCurrency = vCurrency &amp;amp; Right(pAmount, Len(pAmount) - Len(vTemp))&lt;br /&gt;
   End If&lt;/p&gt;
&lt;p&gt;   vCurrency = &quot;$&quot; &amp;amp; vCurrency&lt;/p&gt;
&lt;p&gt;   ToCurrency = vCurrency&lt;br /&gt;
End Function&lt;/p&gt;
&lt;p&gt;Eugene Grinberg&lt;br /&gt;
&lt;a href=&quot;http://www.interprosolution.com&quot; class=&quot;bb-url&quot;&gt;http://www.interprosolution.com&lt;/a&gt;&lt;br /&gt;
FREE Tools &amp;amp; Services for Webmasters&lt;/p&gt;
&lt;p&gt;[This message has been edited by Eugene Grinberg (edited 13 February 2000).]&lt;/p&gt;
 </description>
     <pubDate>Sun, 13 Feb 2000 07:16:00 +0000</pubDate>
 <dc:creator>Eugene Grinberg</dc:creator>
 <guid isPermaLink="false">comment 1014639 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/form-mask#comment-1014638</link>
    <description> &lt;p&gt;Eugene,&lt;br /&gt;
Can you give me an example?&lt;/p&gt;
&lt;p&gt;Thanx a lot&lt;/p&gt;
&lt;p&gt;Coddy&lt;/p&gt;
 </description>
     <pubDate>Thu, 10 Feb 2000 14:51:00 +0000</pubDate>
 <dc:creator>Coddy</dc:creator>
 <guid isPermaLink="false">comment 1014638 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/form-mask#comment-1014637</link>
    <description> &lt;p&gt;You can do the parsing with ASP. Check the following, if the number is greater then 999, put a &#039;.&#039; in front of the last three digits, and so on. The parsing should be pretty straightforward.&lt;/p&gt;
&lt;p&gt;Eugene Grinberg &lt;a href=&quot;http://www.interprosolution.com&quot; class=&quot;bb-url&quot;&gt;http://www.interprosolution.com&lt;/a&gt;&lt;br /&gt;
FREE Tools &amp;amp; Services for Webmasters&lt;/p&gt;
 </description>
     <pubDate>Thu, 10 Feb 2000 03:42:00 +0000</pubDate>
 <dc:creator>Eugene Grinberg</dc:creator>
 <guid isPermaLink="false">comment 1014637 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/form-mask#comment-1014636</link>
    <description> &lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;   Not sure if it&#039;s what you want, but I have some masking routines at my site (along with explanations)  I also have a currency formatting script ($1,999,999.99)&lt;/p&gt;
&lt;p&gt;Vinny &lt;a href=&quot;http://members.aol.com/grassblad&quot; class=&quot;bb-url&quot;&gt; GrassBlade: cut&amp;amp;paste javascript&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 01 Feb 2000 02:43:00 +0000</pubDate>
 <dc:creator>Vincent Puglia</dc:creator>
 <guid isPermaLink="false">comment 1014636 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
