Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
writeln output string length
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
AsyncProcess not firing O...
by
Thausand
[
Today
at 11:07:40 pm]
Clean up and build
by
n7800
[
Today
at 10:15:09 pm]
Unleashed Pascal (async/a...
by
Martin_fr
[
Today
at 08:40:59 pm]
How to avoid duplicates i...
by
mig-31
[
Today
at 05:35:46 pm]
TDWEdit
by
docno
[
Today
at 05:26:23 pm]
QGradientTrackPanel: A Fu...
by
Ed78z
[
Today
at 04:49:24 pm]
Memory location
by
Thaddy
[
Today
at 04:01:56 pm]
TurboBird IBX
by
laguna
[
Today
at 03:55:51 pm]
Which Linux version
by
Thaddy
[
Today
at 03:52:06 pm]
TlsLib4Pascal
by
Xor-el
[
Today
at 03:06:13 pm]
MR - DebuggerIntf for ter...
by
Martin_fr
[
Today
at 12:54:22 pm]
var vs out (including "co...
by
kupferstecher
[
Today
at 12:49:22 pm]
AArch64, load a constant ...
by
LemonParty
[
Today
at 12:31:06 pm]
Separators in the compone...
by
CM630
[
Today
at 10:29:56 am]
Lazarus undead repository...
by
Dankan1890
[
Today
at 10:28:54 am]
[RE-SOLVED] Splitting an ...
by
paweld
[
Today
at 09:52:15 am]
Why does Free Pascal use ...
by
MarkMLl
[
Today
at 09:30:40 am]
[Qt5/Qt6] JPSupport-Qt: J...
by
szlbz
[
Today
at 03:21:56 am]
Extended and XML Frames o...
by
matthius
[
Today
at 01:01:09 am]
Strangely - Not a questio...
by
Bart
[August 12, 2026, 10:26:58 pm]
Selected Text get number ...
by
Martin_fr
[August 12, 2026, 09:47:56 pm]
To DebugLn or not to Debu...
by
Martin_fr
[August 12, 2026, 09:01:02 pm]
New Big Integer library i...
by
ad1mt
[August 12, 2026, 07:16:56 pm]
The best name for procedu...
by
LemonParty
[August 12, 2026, 07:02:53 pm]
'ReadStr' ?
by
J-G
[August 12, 2026, 03:37:39 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: writeln output string length (Read 1048 times)
freemind001
Jr. Member
Posts: 51
writeln output string length
«
on:
February 21, 2024, 10:02:53 pm »
Code: Pascal
[Select]
[+]
[-]
procedure
Log
(
EventType
:
TEventType
;
aMessage
:
string
;
StdOutputOnly
:
boolean
)
;
begin
if
StdOutputOnly
then
writeln
(
aMessage
)
else
begin
writeln
(
aMessage
)
;
AppEventLog
.
Log
(
EventType
,
aMessage
)
;
end
;
end
;
writeln(aMessage) output length is only 256 symbols, why?
if i do
Code: Pascal
[Select]
[+]
[-]
writeln
(
'{1000 symbols here...}'
)
;
it's ok, but
Code: Pascal
[Select]
[+]
[-]
writeln
(
aMessage
+
'{1000 symbols here...}'
)
;
still has the limitation
«
Last Edit: February 21, 2024, 10:05:41 pm by freemind001
»
Logged
Thaddy
Hero Member
Posts: 19609
Glad to be alive.
Re: writeln output string length
«
Reply #1 on:
February 21, 2024, 10:06:16 pm »
{$H+}
Logged
Any "programmer" that knows only one programming language is not a programmer
rvk
Hero Member
Posts: 7064
Re: writeln output string length
«
Reply #2 on:
February 21, 2024, 10:13:20 pm »
Somewhat more expanded
https://wiki.lazarus.freepascal.org/$H
Logged
freemind001
Jr. Member
Posts: 51
Re: writeln output string length
«
Reply #3 on:
February 21, 2024, 10:15:22 pm »
works, thank you
can I use it together with {$mode objfpc}?
Logged
rvk
Hero Member
Posts: 7064
Re: writeln output string length
«
Reply #4 on:
February 21, 2024, 10:18:14 pm »
Yes. Normally if you create a default program with lazarus, this is already automatically added at the top.
Code: Pascal
[Select]
[+]
[-]
{$mode objfpc}{$H+}
Logged
Thaddy
Hero Member
Posts: 19609
Glad to be alive.
Re: writeln output string length
«
Reply #5 on:
February 22, 2024, 06:57:30 am »
or use {$mode delphi} where {$H+} is implied. (the only mode where that is the case)
Logged
Any "programmer" that knows only one programming language is not a programmer
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
writeln output string length
TinyPortal
© 2005-2018