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
Random errors in TensorFl...
by
jollytall
[
Today
at 08:29:13 am]
DBLookupListBox shows (ME...
by
Zvoni
[
Today
at 08:11:20 am]
I have created dll in gol...
by
cdbc
[
Today
at 08:09:42 am]
The Silver Coder on YouTu...
by
vercetti
[
Today
at 06:44:41 am]
Interesting article about...
by
440bx
[
Today
at 04:16:49 am]
SAVE StringGrid to PDF
by
dseligo
[
Today
at 02:40:40 am]
Controlled Folder Access
by
dseligo
[
Today
at 02:34:02 am]
had a question and found ...
by
MarkMLl
[
Today
at 12:13:40 am]
Online tutor using remote...
by
silvercoder70
[December 10, 2024, 10:04:11 pm]
[solved] how to control t...
by
mas steindorff
[December 10, 2024, 08:47:04 pm]
Wiki, a dead link in page...
by
d7_2_laz
[December 10, 2024, 08:42:35 pm]
How to save a Graphic fro...
by
jeremiah
[December 10, 2024, 08:11:54 pm]
Crosshair error when chan...
by
Marq01
[December 10, 2024, 08:02:17 pm]
Adding interfaces to any ...
by
Thaddy
[December 10, 2024, 07:32:56 pm]
AVRPascal – free code edi...
by
ackarwow
[December 10, 2024, 04:57:47 pm]
MainMenu: How to use the ...
by
madref
[December 10, 2024, 04:19:32 pm]
I need advice for a new c...
by
wp
[December 10, 2024, 03:18:11 pm]
Datatypes Interoperabilit...
by
silvercoder70
[December 10, 2024, 01:32:48 pm]
Notepad++ plugin with doc...
by
d7_2_laz
[December 10, 2024, 01:11:52 pm]
ZDataset.Locate + loParti...
by
silvercoder70
[December 10, 2024, 10:49:08 am]
SQLite3 Date Problem
by
silvercoder70
[December 10, 2024, 10:08:07 am]
Record "inheritance"/stru...
by
Thaddy
[December 10, 2024, 09:54:38 am]
D2Bridge Framework for La...
by
egsuh
[December 10, 2024, 04:48:02 am]
Application deployment
by
cousinp
[December 10, 2024, 04:28:36 am]
[SOLVED] FPSpreadSheet, ...
by
TRon
[December 10, 2024, 01:25:51 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: writeln output string length (Read 703 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: 16194
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: 6586
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: 6586
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: 16194
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