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
How to Build Laz IDE from...
by
Barberr
[
Today
at 10:08:20 pm]
NIL vs. Assign: when to u...
by
Remy Lebeau
[
Today
at 09:48:31 pm]
PScript or MagicScript ad...
by
eldonfsr
[
Today
at 09:44:53 pm]
Hooking to `OnISupport` d...
by
Remy Lebeau
[
Today
at 09:42:20 pm]
Connection to MySQL versi...
by
iginfo
[
Today
at 09:40:52 pm]
Converting a Project from...
by
cdbc
[
Today
at 08:32:07 pm]
Hustle - A simple task ma...
by
Hansvb
[
Today
at 07:42:04 pm]
Bindings for PlutoVG
by
CynicRus
[
Today
at 07:09:50 pm]
efficiency problem
by
LV
[
Today
at 07:00:15 pm]
zeosdb zupdate don't work...
by
eldonfsr
[
Today
at 06:11:23 pm]
PostgreSQL "no route to h...
by
MarkMLl
[
Today
at 05:07:42 pm]
IfThenStr does not work -...
by
Thaddy
[
Today
at 04:43:13 pm]
[Solved] Exception "In Ha...
by
cdbc
[
Today
at 04:34:14 pm]
File IO issues
by
dryzone
[
Today
at 03:58:23 pm]
savescreen, restscrren
by
k1attila1
[
Today
at 03:52:29 pm]
How to make RunCommand NO...
by
zxandris
[
Today
at 03:17:07 pm]
[maybe SOLVED] BUG in Inp...
by
robert rozee
[
Today
at 03:03:10 pm]
Different builds for more...
by
daniel_sap
[
Today
at 02:54:57 pm]
Website renovation
by
Aruna
[
Today
at 02:51:59 pm]
Error after installing ne...
by
sbulazel
[
Today
at 02:28:16 pm]
[Solved] Illegal expressi...
by
nikel
[
Today
at 12:56:23 pm]
How to compile project fr...
by
MarkMLl
[
Today
at 11:43:42 am]
FPC 2.2.2 for classic Mac...
by
Jonas Maebe
[
Today
at 11:13:17 am]
R3D - 3D Rendering Librar...
by
axel18
[
Today
at 11:01:59 am]
I'm wondering, what kind ...
by
440bx
[
Today
at 09:58:39 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: writeln output string length (Read 791 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: 16631
Kallstadt seems a good place to evict Trump to.
Re: writeln output string length
«
Reply #1 on:
February 21, 2024, 10:06:16 pm »
{$H+}
Logged
But I am sure they don't want the Trumps back...
rvk
Hero Member
Posts: 6683
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: 6683
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: 16631
Kallstadt seems a good place to evict Trump to.
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
But I am sure they don't want the Trumps back...
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
writeln output string length
TinyPortal
© 2005-2018