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
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Barchart - why ist the fi...
by
Nicole
[
Today
at 05:30:29 pm]
Fpcupdeluxe and trunk
by
LemonParty
[
Today
at 05:10:08 pm]
Reducing the saturation o...
by
Handoko
[
Today
at 05:05:23 pm]
Convert this Python code ...
by
LV
[
Today
at 05:02:50 pm]
Testing with SQLite3DataS...
by
Hansvb
[
Today
at 05:00:15 pm]
Why isn't Lazarus / Free ...
by
marcov
[
Today
at 04:52:43 pm]
I get access violation wh...
by
440bx
[
Today
at 04:48:43 pm]
How to use MySQL by PHP ?
by
FMR
[
Today
at 04:44:31 pm]
New shader examples for r...
by
TBMan
[
Today
at 03:49:53 pm]
Macos Sequoia Lazarus 3.8...
by
turunk
[
Today
at 02:32:56 pm]
Compile Error on Assign f...
by
turunk
[
Today
at 02:30:39 pm]
Cannot execute Lazarus ID...
by
maurobio
[
Today
at 02:00:14 pm]
Writing a TMemo widget fr...
by
Martin_fr
[
Today
at 01:05:29 pm]
Koi Fish Fractal Tree (Us...
by
Boleeman
[
Today
at 10:43:45 am]
[solved] macro for code ?
by
alpine
[
Today
at 09:00:25 am]
Old MoveJOH_PAS_3 move me...
by
Thaddy
[
Today
at 07:47:03 am]
Amoeba Animated: Another ...
by
Boleeman
[
Today
at 07:18:57 am]
Seeing CLOUDS: But outsid...
by
Boleeman
[
Today
at 05:25:31 am]
Colored Triangled Tunnel ...
by
Boleeman
[
Today
at 01:30:13 am]
Animated Spinning Cluster...
by
Boleeman
[
Today
at 01:05:40 am]
Does anyone have the idea...
by
WayneSherman
[
Today
at 12:58:19 am]
Newbie in Web Programming...
by
Renat.Su
[April 24, 2025, 10:58:31 pm]
Uppercase in Keypress
by
Bart
[April 24, 2025, 10:32:13 pm]
Lazarus on Linux but Targ...
by
Sakkie
[April 24, 2025, 09:42:30 pm]
Package Use – Install ra...
by
paule32
[April 24, 2025, 09:15:29 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: writeln output string length (Read 813 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: 16809
Ceterum censeo Trump esse delendam
Re: writeln output string length
«
Reply #1 on:
February 21, 2024, 10:06:16 pm »
{$H+}
Logged
Changing servers. thaddy.com may be temporary unreachable but restored when the domain name transfer is done.
rvk
Hero Member
Posts: 6704
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: 6704
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: 16809
Ceterum censeo Trump esse delendam
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
Changing servers. thaddy.com may be temporary unreachable but restored when the domain name transfer is done.
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
writeln output string length
TinyPortal
© 2005-2018