I always did it this way but then you have some leading spaces: ? TRANSFORM(12345.67, '$$$,$$$,$$$.99')
-Kevin CULLY Technologies, LLC Fred Taylor wrote: > You need a space after the $. > > transform(vInvHdr.nAmount,'@$ 999,999,999.99') > > Fred > > > On Thu, Dec 4, 2008 at 9:08 AM, MB Software Solutions General Account < > [EMAIL PROTECTED]> wrote: > >> I'm trying to add a dollar amount into a string using TRANSFORM. I >> could have swore I've done this before but I must have done so in the >> Report Designer and not in PRG code. >> >> lcCaption = "Total amount = " + >> transform(vInvHdr.nAmount,'@$999,999,999.99') >> >> Desired effect: Total amount = $123,456,789.12 >> Current effect: Total amount = $123456789.12 >> >> I'm sure this'll be a "Doh!" moment when I get the answer. Remember -- >> this is in code, not using the Report Designer. >> >> TIA! >> --Michael >> >> >> >> >> [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

