Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
reverse string
#1
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
Code:
Copy      Help
str test="cba"

I want the output to be "abc"
#2
Look in 'string' category.

Macro Macro2052
Code:
Copy      Help
str test="cba"
string.strrev test
out test

If string contains Unicode characters, use wcsrev.
Macro Macro2052
Code:
Copy      Help
str test="cbą"
BSTR b=test
wcsrev b
test=b
out test
#3
THANKS!!!


Forum Jump:


Users browsing this thread: 1 Guest(s)