Ask questions about how to create a script or swap scripts with other users.
-
micha_he
- Posts: 573
- Joined: 24 Jul 2011 12:16
- Location: Helmstedt, NDS, Germany
Post
by micha_he »
I have a String like "(abcdef)" in the selection. I would like replace the "(" with an empty string with a scriptpart like this:
Code: Select all
MoveStr = Document.SelText;
ShowMessage(MoveStr);
MoveStr = ScriptUtils.WStringReplaceAll(MoveStr, "(", "");
ShowMessage(MoveStr);
But nothing is replaced. Why ? Who is it correct ?
-
pjj
- Posts: 2236
- Joined: 13 Oct 2009 13:48
- Location: Kraków, Poland
Post
by pjj »
Seems like it doesn't want to use empty string as a replacement at all. No idea how to circumvent it, though.
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus