Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
LCL
»
[SOLVED] Amount in words
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
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
fphttpclient. set path op...
by
Warfley
[
Today
at 11:55:46 am]
FileOpenDialog crashes/fr...
by
Martin_fr
[
Today
at 11:55:36 am]
Changes in "Search Result...
by
Martin_fr
[
Today
at 11:44:20 am]
help exporting 2 data col...
by
wp
[
Today
at 11:30:29 am]
CRT unit kills Ctrl-C
by
MarkMLl
[
Today
at 11:23:54 am]
Actions and Reslts
by
wp
[
Today
at 11:13:35 am]
Does FPC uses any interme...
by
MarkMLl
[
Today
at 10:29:28 am]
How can I capture all key...
by
jcmontherock
[
Today
at 10:21:51 am]
How to make a T[Flow]Pane...
by
pleumann
[
Today
at 10:19:34 am]
(Solved) Hex2Dec, strange...
by
arneolav
[
Today
at 10:02:02 am]
Making a little chart app
by
phoenix27
[
Today
at 09:50:32 am]
any one knows how to set ...
by
TRon
[
Today
at 08:54:37 am]
Any way to intercept stdo...
by
TRon
[
Today
at 08:35:10 am]
help choosing laptop
by
Weiss
[
Today
at 08:15:57 am]
IInterface issues, compil...
by
WooBean
[
Today
at 07:59:51 am]
.cvd ClamAV database comp...
by
Onur2x
[
Today
at 03:47:26 am]
How to download a file fr...
by
maurobio
[
Today
at 02:04:49 am]
Best way to include lots ...
by
KodeZwerg
[June 04, 2023, 10:54:51 pm]
Are We Dead Yet?
by
SymbolicFrank
[June 04, 2023, 09:57:00 pm]
Working with the canvas o...
by
Jonax
[June 04, 2023, 05:31:27 pm]
ControlAtPos Behavior
by
Zoran
[June 04, 2023, 04:24:32 pm]
TDBGrid extended like Acc...
by
dsiders
[June 04, 2023, 03:49:48 pm]
Improvement of procedure ...
by
Martin_fr
[June 04, 2023, 03:20:51 pm]
How do I set these packag...
by
lazpas
[June 04, 2023, 01:30:01 pm]
general reference manual ...
by
simone
[June 04, 2023, 12:38:19 pm]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: [SOLVED] Amount in words (Read 1393 times)
Pe3s
Sr. Member
Posts: 416
Re: Amount in words
«
Reply #15 on:
March 21, 2023, 05:09:16 pm »
how should i correct these lines?
Code: Pascal
[Select]
[+]
[-]
else
if
(
i >
3
)
and
(
digits
[
5
]
<>
''
)
and
(
StrToInt
(
digits
[
5
]
)
=
1
)
then
str
:
=
str
+
nastki
[
StrToInt
(
digits
[
4
]
)
]
+
' '
;
Logged
KodeZwerg
Hero Member
Posts: 1399
Fifty shades of code.
Re: Amount in words
«
Reply #16 on:
March 21, 2023, 05:19:48 pm »
When you want to access element 5, than "i" must be greater or equal to "5", exemplary "i > 4" or "i >= 5"
Logged
«
Last Edit:
Tomorrow
at 31:76:97 by
KodeZwerg
»
Pe3s
Sr. Member
Posts: 416
Re: Amount in words
«
Reply #17 on:
March 21, 2023, 06:09:52 pm »
Thank you all for your help
Logged
Print
Pages:
1
[
2
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
LCL
»
[SOLVED] Amount in words
TinyPortal
© 2005-2018