• Earn real money by being active: Hello Guest, earn real money by simply being active on the forum — post quality content, get reactions, and help the community. Once you reach the minimum credit amount, you’ll be able to withdraw your balance directly. Learn how it works.

AutoIT Funcion Reverse [By Pink]

Status
Not open for further replies.

Expermicid

Leech
User
Joined
Oct 23, 2011
Messages
285
Reputation
0
Reaction score
255
Points
63
Credits
0
‎13 Years of Service‎
95%
[lenguaje=autoit]#cs -------------------------------------------------------

AutoIt Version: 3.3.8.1

Author..........: Pink

Script Function...: Reverse

Uso..............: Reverse("cadena")

#ce -------------------------------------------------------

Func Reverse($string)

local $result

local $char

$len=stringlen($string)+1

local $array[$len]

for $i = 1 to $len-1

$char=StringMid($string,$i,1)

$array[$i]=$char

Next

for $i= $len-1 to 1 Step -1

$result=$result & $array[$i]

Next

return $result

EndFunc[/lenguaje]

Autor: Pink

 
Last edited by a moderator:
Status
Not open for further replies.
Back
Top