Page 1 of 1

Document.ReplaceAll stopped working

Posted: 27 Nov 2025 06:30
by dustwalker
Hi,
The Pascal script line `Document.ReplaceAll('t', 'X', False, False, False, True);` should replace "t" for "X". In RJ TextEd 15.0 or 15.2, it does nothing.

The problem also occurs in C++ scripts: `Document.ReplaceAll("t", "X", False, False, False, True);` fails.

In a related matter, the C++ script line `Document.NewlineFormat = "Unix" ;` works, but the equivalent Pascal line `Document.NewlineFormat = 'Unix' ;` fails.

Thanks for a great program and best regards

Re: Document.ReplaceAll stopped working

Posted: 29 Nov 2025 14:13
by Rickard Johansson
Fixed the "Replace All" issue in next release (v16.53). Thanks!

Code: Select all

Document.NewlineFormat = 'Unix';
should be

Code: Select all

Document.NewlineFormat := 'Unix';
in a Pascal script.