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
Strange form designer beh...
by
cdbc
[
Today
at 11:20:12 am]
A Tip for beginners
by
Thaddy
[
Today
at 10:55:56 am]
UK's Online Safety Act
by
bobby100
[
Today
at 10:35:30 am]
Artificial intelligence
by
Thaddy
[
Today
at 10:32:26 am]
Programs writing programs...
by
cdbc
[
Today
at 10:19:59 am]
INET TLUDPcomponent for i...
by
cdbc
[
Today
at 10:12:34 am]
Restoring minimized scree...
by
Nico
[
Today
at 10:01:36 am]
FPC 3.2.4, naming suggest...
by
cdbc
[
Today
at 09:40:30 am]
Feature announcement: Imp...
by
Thaddy
[
Today
at 09:37:38 am]
MQTT Client
by
Thaddy
[
Today
at 06:41:06 am]
Amigo programming languag...
by
paxscript
[
Today
at 06:03:23 am]
Form editer strange behav...
by
TheMouseAUS
[
Today
at 03:48:44 am]
Post your artwork made fr...
by
BubikolRamios
[
Today
at 02:36:29 am]
Nested declarations insid...
by
440bx
[
Today
at 02:13:29 am]
TImage colors incorrect
by
Jonny
[
Today
at 01:24:06 am]
Using Masurement Computin...
by
Sander
[January 17, 2025, 11:33:30 pm]
Lazarus Release Candidate...
by
verasan
[January 17, 2025, 10:25:58 pm]
VGM Player
by
Gigatron2
[January 17, 2025, 09:29:09 pm]
How to avoid copying
by
Amir61
[January 17, 2025, 07:55:16 pm]
UnoLib - library in Pasca...
by
ackarwow
[January 17, 2025, 07:25:40 pm]
Bug in the formula MATCH
by
wp
[January 17, 2025, 06:38:31 pm]
Problem in writing formul...
by
wp
[January 17, 2025, 06:16:53 pm]
Preparing FPC 3.2.4, poin...
by
lainz
[January 17, 2025, 02:29:45 pm]
LCL Web Native with D2Bri...
by
BlueIcaro
[January 17, 2025, 01:06:25 pm]
Connection issues, contin...
by
Zvoni
[January 17, 2025, 12:48:24 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: writeln output string length (Read 746 times)
freemind001
New Member
Posts: 45
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: 16357
Censorship about opinions does not belong here.
Re: writeln output string length
«
Reply #1 on:
February 21, 2024, 10:06:16 pm »
{$H+}
Logged
There is nothing wrong with being blunt. At a minimum it is also honest.
rvk
Hero Member
Posts: 6641
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: 45
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: 6641
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: 16357
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
There is nothing wrong with being blunt. At a minimum it is also honest.
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
writeln output string length
TinyPortal
© 2005-2018