Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, November 25, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: LAN Architect Format String - Currency without Decimals
Paul Roussell
Posts: 5
 
LAN Architect Format String - Currency without DecimalsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 13 Jan 16 7:54 PM

I have looked through other posts, but can't seem to do what I need to Undecided


I have a field defined in the database as "Currency".  I have placed an Edit control on a form and specified ftCurrency as the FormatType.


OK so far, but it displays as (for example):  $123,456,789.00 and I would like to make it read $123,456,789 without the decimal point or decimal places.  Arguably I should have perhaps called the field Integer, but it will in fact contain only whole dollars.


I tried putting %.0f as a FormatString, but this ended up dropping the $ sign and the comma separators. 


Any ideas please?  I also would like to the same thing in a List View on the same data.


Many thanks!  Sorry in advance if I should have looked more carefully for an answer!

[Reply][Quote]
Jin San Son
Posts: 8
 
Re: LAN Architect Format String - Currency without DecimalsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Jan 16 12:32 AM

Hi Paul,


Try this. m is for money. You can access entire list of if you search for printf on the net if I remember correctly.


%.0m


Regards,


 


Jinsan


 

[Reply][Quote]
Paul Roussell
Posts: 5
 
Re: LAN Architect Format String - Currency without DecimalsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Jan 16 4:47 PM

Brilliant!  Thanks Jinsan.  That works perfectly!

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/25/2024 5:59:03 PM