Jump to content

Recommended Posts

hi guys, I needed a function to reverse a string, I got to do this until it works:

Func _Revert_text($text)
    Local $count = StringLen($text)
    If $count = 0 Then Return
    Local $a = 0
    Local $newstring = ""

    For $i = $count To 1 Step -1
        Local $letter = StringMid($text, $count - $a, 1)
        $newstring = $newstring & $letter
        $a += 1

    Return $newstring
EndFunc   ;==>_Revert_text

But I think it was poorly done, is there another way to do?


Link to post
Share on other sites

How about


Edit: Change the parameter to suit your need

Edited by Realm

My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry.  

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...