Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
LazReport
»
How to format memo for currency?
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
[Windows] UTF8 encoding w...
by
bstewart
[
Today
at 08:09:57 pm]
Anti "churning" in solita...
by
TBMan
[
Today
at 07:39:56 pm]
Default, Manual Initializ...
by
Okoba
[
Today
at 07:25:07 pm]
[Solved] Exception in TFi...
by
d.oertel
[
Today
at 06:18:05 pm]
Perlin Noise Map With BGR...
by
Dzandaa
[
Today
at 06:17:50 pm]
AdvancedHTTPServer: A Go-...
by
CynicRus
[
Today
at 05:06:13 pm]
Strings in Free Pascal: I...
by
BeniBela
[
Today
at 04:11:28 pm]
Lazreport. Sorting.
by
Thausand
[
Today
at 02:51:00 pm]
IStringList...
by
cdbc
[
Today
at 02:50:47 pm]
Animated Sine Beziers
by
Boleeman
[
Today
at 02:34:32 pm]
PadXml 1.0.0 – Portable A...
by
AlexanderT
[
Today
at 02:04:18 pm]
ThemeServices.OnThemeChan...
by
zeljko
[
Today
at 11:32:11 am]
What's wrong with my appl...
by
Thaddy
[
Today
at 09:49:16 am]
Very simple Style Manager...
by
sgj
[
Today
at 09:29:05 am]
Cross Compile for Dos on ...
by
Thaddy
[
Today
at 09:19:24 am]
Unit decfloat
by
srvaldez
[
Today
at 12:14:43 am]
Access violation during d...
by
Martin_fr
[January 19, 2026, 08:02:11 pm]
Adjacent rectangles not a...
by
jamie
[January 19, 2026, 06:21:09 pm]
Developing FreePascal on ...
by
HKPhysicist
[January 19, 2026, 03:53:13 pm]
Assigning firebird file n...
by
egsuh
[January 19, 2026, 10:18:22 am]
Postgres, ZEOS and Visual...
by
Thaddy
[January 19, 2026, 07:00:03 am]
Feature announcement: Fun...
by
Thaddy
[January 19, 2026, 06:55:15 am]
[SOLVED] Strange behavior...
by
jamie
[January 19, 2026, 12:08:12 am]
AVRPascal – free code edi...
by
ackarwow
[January 18, 2026, 10:18:12 pm]
help implementing frexp
by
srvaldez
[January 18, 2026, 09:25:07 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to format memo for currency? (Read 6673 times)
snorkel
Hero Member
Posts: 817
How to format memo for currency?
«
on:
November 09, 2012, 04:42:12 pm »
Hi,
Sorry for all the questions.
Anyway, Iam porting a delphi app that used fast reports and the group footer sum field was formatted for currency
i.e.
if positive it shows $56.78 and if negative it shows (56.78) and it also pads the values if needed for example if the
dataset value was 56.7 it would display $56.70
Thanks in advance.
Snorkel
Logged
***Snorkel***
If I forget, I always use the latest stable 32bit version of Lazarus and FPC. At the time of this signature that is Laz 3.0RC2 and FPC 3.2.2
OS: Windows 10 64 bit
snorkel
Hero Member
Posts: 817
Re: How to format memo for currency?
«
Reply #1 on:
November 09, 2012, 04:47:22 pm »
oh, forgot to add I tried to use the formatting string FR for Dephi uses:
%2.2m
but it does not work the values display like this:
%255259
for a sum of 55056.36 and 202.63
Logged
***Snorkel***
If I forget, I always use the latest stable 32bit version of Lazarus and FPC. At the time of this signature that is Laz 3.0RC2 and FPC 3.2.2
OS: Windows 10 64 bit
snorkel
Hero Member
Posts: 817
Re: How to format memo for currency?
«
Reply #2 on:
November 09, 2012, 05:09:10 pm »
This was not easy to find, so here is the solution, hope it helps someone else:
Right click on the memo object and select variable format, then select custom and paste this in:
$#,##0.00;($#,##0.00);-;-
Logged
***Snorkel***
If I forget, I always use the latest stable 32bit version of Lazarus and FPC. At the time of this signature that is Laz 3.0RC2 and FPC 3.2.2
OS: Windows 10 64 bit
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
LazReport
»
How to format memo for currency?
TinyPortal
© 2005-2018