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
Button opens terminal (Li...
by
ortegahernandes
[
Today
at 09:05:57 pm]
Interesting article about...
by
440bx
[
Today
at 08:58:24 pm]
Animated GIF's and Lazaru...
by
lainz
[
Today
at 08:43:39 pm]
[Solved] Q: Debug a plugi...
by
d7_2_laz
[
Today
at 08:10:13 pm]
[Solved] TCheckGroup Chil...
by
TheLastCayen
[
Today
at 07:43:50 pm]
NSHapticFeedbackPerformer
by
msintle
[
Today
at 07:35:29 pm]
Another way to search the...
by
Handoko
[
Today
at 07:24:17 pm]
SDL2 Fit image rotation b...
by
Pe3s
[
Today
at 07:18:57 pm]
SAVE StringGrid to PDF
by
dseligo
[
Today
at 06:50:20 pm]
AVRPascal – free code edi...
by
Dzandaa
[
Today
at 06:26:38 pm]
Error: External: FLT INVA...
by
krzynio
[
Today
at 06:23:56 pm]
Specializing a generic of...
by
Okoba
[
Today
at 05:26:07 pm]
[SOLVED] Classic objects ...
by
flowCRANE
[
Today
at 05:25:15 pm]
C operators and shift
by
VisualLab
[
Today
at 05:20:20 pm]
Current GTK2 and GTK3 Sta...
by
AlexTP
[
Today
at 04:04:50 pm]
Lazarus for Windows on aa...
by
PascalDragon
[
Today
at 03:32:02 pm]
How make the GUI as one p...
by
PascalDragon
[
Today
at 03:27:30 pm]
Common File Dialogs Have ...
by
rvk
[
Today
at 02:39:17 pm]
Starting a program with h...
by
Hartmut
[
Today
at 01:41:23 pm]
DBGrid editing control
by
silvercoder70
[
Today
at 12:43:29 pm]
TSynCompletion filtering ...
by
Martin_fr
[
Today
at 12:08:45 pm]
IFS Fractals: Iterating t...
by
Joanna from IRC
[
Today
at 11:41:26 am]
Unwanted additional line ...
by
CM630
[
Today
at 08:55:13 am]
How to copy file to web
by
TRon
[
Today
at 07:56:04 am]
MainMenu: How to use the ...
by
rich2014
[
Today
at 02:45:31 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: writeln output string length (Read 705 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: 6594
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: 6594
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