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
[SOLVED] Download link to...
by
Wings2018
[
Today
at 10:37:08 pm]
Best way to exchange data...
by
Hansvb
[
Today
at 10:16:58 pm]
Testing with SQLite3DataS...
by
1HuntnMan
[
Today
at 10:01:55 pm]
Doing C-like linking of m...
by
domasz
[
Today
at 09:45:42 pm]
Win11 - How to start cons...
by
dculp
[
Today
at 09:04:49 pm]
This is me back in Lazaru...
by
JD
[
Today
at 08:38:12 pm]
2d "platform" game sugges...
by
TBMan
[
Today
at 08:18:00 pm]
First it's a square, then...
by
TBMan
[
Today
at 08:13:13 pm]
FPC 3.2.2 using Result wi...
by
Remy Lebeau
[
Today
at 08:07:23 pm]
accessing array members i...
by
TRon
[
Today
at 08:05:23 pm]
problem with easylazfreet...
by
Bart
[
Today
at 06:40:34 pm]
looping direction control...
by
MarkMLl
[
Today
at 06:12:27 pm]
My kernel cannot response...
by
TYDQ
[
Today
at 04:23:48 pm]
ERROR:Generating PIC, but...
by
TYDQ
[
Today
at 04:22:45 pm]
Forum slow for others as ...
by
PascalDragon
[
Today
at 02:58:59 pm]
Feature announcement: Fun...
by
PascalDragon
[
Today
at 02:53:37 pm]
FPC 3.2.2 fpc_chararray_t...
by
PascalDragon
[
Today
at 02:47:47 pm]
Rainbow Dots Animated in ...
by
Boleeman
[
Today
at 02:46:39 pm]
Edmond Harris Spiral: Ver...
by
Boleeman
[
Today
at 02:37:32 pm]
Silver Pascal Coder - Lat...
by
silvercoder70
[
Today
at 01:23:50 pm]
[SOLVED] SQLite3 REINDEX
by
CharlyTango
[
Today
at 12:22:22 pm]
Is this Stupid? What do y...
by
JD
[
Today
at 11:53:26 am]
Amoeba Animated: Not that...
by
Dzandaa
[
Today
at 11:35:43 am]
THashedStringList - do we...
by
Thaddy
[
Today
at 09:53:43 am]
Managing linked list as i...
by
cdbc
[
Today
at 08:30:34 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: writeln output string length (Read 812 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: 16770
Ceterum censeo Trump esse delendam
Re: writeln output string length
«
Reply #1 on:
February 21, 2024, 10:06:16 pm »
{$H+}
Logged
Changing servers. thaddy.com may be temporary unreachable but restored when the domain name transfer is done.
rvk
Hero Member
Posts: 6703
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: 6703
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: 16770
Ceterum censeo Trump esse delendam
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
Changing servers. thaddy.com may be temporary unreachable but restored when the domain name transfer is done.
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
writeln output string length
TinyPortal
© 2005-2018