Posts: 769
Threads: 263
Joined: Jul 2012
Sorry for this very simple question.
But what is the most effective way to reverse a string?
(I probably have overlooked something in de "str" section in the helpfile)
I have a string:
Macro
Macro9
I want the output to be "
abc"
Posts: 12,090
Threads: 142
Joined: Dec 2002
Look in 'string' category.
Macro
Macro2052
str test="cba"
string.strrev test
out test
If string contains Unicode characters, use wcsrev.
Macro
Macro2052
str test="cbą"
BSTR b=test
wcsrev b
test=b
out test
Posts: 769
Threads: 263
Joined: Jul 2012