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 copy file to web
by
TRon
[
Today
at 07:56:04 am]
DBGrid editing control
by
dsiders
[
Today
at 05:45:36 am]
Animated GIF's and Lazaru...
by
Aruna
[
Today
at 05:44:42 am]
TCheckGroup Child Alignme...
by
dsiders
[
Today
at 05:34:14 am]
MainMenu: How to use the ...
by
rich2014
[
Today
at 02:45:31 am]
Interesting article about...
by
440bx
[
Today
at 02:39:50 am]
Lazarus for Windows on aa...
by
msintle
[
Today
at 02:33:01 am]
Common File Dialogs Have ...
by
msintle
[
Today
at 02:32:24 am]
Q: Debug a plugin DLL - c...
by
440bx
[
Today
at 02:23:27 am]
[SOLVED] Classic objects ...
by
TRon
[
Today
at 02:19:36 am]
[Solved] Dumb SQLite ques...
by
dsiders
[
Today
at 12:44:26 am]
How make the GUI as one p...
by
dsiders
[
Today
at 12:39:39 am]
Starting a program with h...
by
jeremiah
[December 13, 2024, 10:57:53 pm]
SDL2 Fit image rotation b...
by
bobihot
[December 13, 2024, 10:31:27 pm]
[Solved] Crosshair error ...
by
Marq01
[December 13, 2024, 09:55:14 pm]
What is the history of di...
by
mika
[December 13, 2024, 09:49:59 pm]
Unwanted additional line ...
by
Ten_Mile_Hike
[December 13, 2024, 09:34:47 pm]
fpweb documentation do no...
by
Sniper
[December 13, 2024, 09:02:16 pm]
Managed pointers
by
jksmithiii
[December 13, 2024, 08:42:29 pm]
[Solved] Debug a plugin D...
by
d7_2_laz
[December 13, 2024, 05:27:48 pm]
SAVE StringGrid to PDF
by
seghele0
[December 13, 2024, 05:19:19 pm]
Who catches the Linux sig...
by
MarkMLl
[December 13, 2024, 04:43:45 pm]
TvsComPort on MacOS Sierr...
by
Dzandaa
[December 13, 2024, 04:23:21 pm]
Adding interfaces to any ...
by
Warfley
[December 13, 2024, 03:48:44 pm]
[SOLVED] TRichMemo and te...
by
MarkMLl
[December 13, 2024, 01:56:57 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: writeln output string length (Read 704 times)
freemind001
New Member
Posts: 35
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: 16201
Censorship about opinions does not belong here.
Re: writeln output string length
«
Reply #1 on:
February 21, 2024, 10:06:16 pm »
{$H+}
Logged
If I smell bad code it usually is bad code and that includes my own code.
rvk
Hero Member
Posts: 6592
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
New Member
Posts: 35
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: 6592
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: 16201
Censorship about opinions does not belong here.
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
If I smell bad code it usually is bad code and that includes my own code.
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
writeln output string length
TinyPortal
© 2005-2018