Document.ReplaceAll stopped working

Ask questions about how to create a script or swap scripts with other users.
Post Reply
dustwalker
Posts: 29
Joined: 08 Jun 2011 17:14

Document.ReplaceAll stopped working

Post 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
User avatar
Rickard Johansson
Site Admin
Posts: 6884
Joined: 19 Jul 2006 14:29

Re: Document.ReplaceAll stopped working

Post 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.
Post Reply