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
Tesseract for ocr
by
Packs
[
Today
at 06:05:30 am]
IsNan
by
BubikolRamios
[
Today
at 05:54:45 am]
FLIF and FUIF Formats (Fr...
by
hukka
[
Today
at 05:34:30 am]
Pathfinding (A*)
by
d2010
[
Today
at 05:21:25 am]
Unselect all rows in stri...
by
Jonny
[
Today
at 02:16:49 am]
Magic Cropper (correct pe...
by
Boleeman
[
Today
at 01:41:08 am]
Lazarus editor feature re...
by
Tony Stone
[
Today
at 01:31:57 am]
Treeview: full-width back...
by
d7_2_laz
[
Today
at 12:41:34 am]
BUG in InputQuery if defa...
by
dsiders
[
Today
at 12:38:49 am]
Custom self drawn compone...
by
Artur W.
[
Today
at 12:36:58 am]
NTSC/CRT port for Free Pa...
by
hukka
[
Today
at 12:35:52 am]
Where is Spready?
by
Curt Carpenter
[February 07, 2025, 11:57:51 pm]
N-Bit Dotted Line Pattern...
by
Boleeman
[February 07, 2025, 11:53:47 pm]
my programs crash
by
turunk
[February 07, 2025, 11:22:37 pm]
Oberon Pi, a port of Ober...
by
McDoob
[February 07, 2025, 11:21:36 pm]
fpc trunk:I can't build i...
by
wcage03
[February 07, 2025, 10:26:40 pm]
Transparent animation
by
majolika
[February 07, 2025, 09:29:03 pm]
LAMW manager out of date?
by
jmpessoa
[February 07, 2025, 09:25:57 pm]
ZBarcodeView
by
jmpessoa
[February 07, 2025, 09:19:24 pm]
Compile App Error
by
jmpessoa
[February 07, 2025, 09:15:32 pm]
Error on LAMW application...
by
jmpessoa
[February 07, 2025, 09:13:08 pm]
align a panel alClient in...
by
Martin_fr
[February 07, 2025, 09:13:04 pm]
Fpcupdeluxe
by
petex
[February 07, 2025, 09:12:02 pm]
using RunCommand to wrap ...
by
MarkMLl
[February 07, 2025, 09:10:09 pm]
Usage of Lazlogger 2 - st...
by
PeterX
[February 07, 2025, 07:59:13 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: writeln output string length (Read 771 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: 16520
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: 6658
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: 6658
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: 16520
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