Hello - fairly new so bear with me,
First of all, thank you for the fine product - very useful!
I've been using the macro creator to build the scripts but I'm having trouble with two similar commands.
StringReplace and RegExReplace
Can't seem to insert StringReplace through the insert function command
The function seems to be recognized when I type it in (message in lower left of message box:"Replaces specified Substring...")
But when I click OK, a message pops up: "StringReplace is not a valid function name" (maybe this function needs to be added with a different tool?)
What I'm trying to accomplish:
I want to strip as string of spaces with a function.
So I then I tried RegExReplace which seems to function great whenever I use it to replace part of the string with nothing (delete it) or other characters. However, if I try to replace a space character %A-Space% or Chr(32), and the replacement is an empty string. Then it returns the output string unchanged rather than deleting any spaces.
Partial script:
JnClip1 := Clipboard
KillChr := """ """
Blank := ""
JnClipStripped := RegExReplace(JnClip1, A-Space, Blank, JnClipStrippedCount, -1, 1)
Thanks for any suggestions.