AutoIt - Return value always 0 -
i wrote method can recursive, homecoming value 0, when has value string on console:
func hasitthething($s) $result = stringinstr(...,...) local $newstring $newstring = $s if not $result > 0 consolewrite("newstring = " & $newstring & @crlf) homecoming $newstring else $newstring = ;fix string hasitthething($newstring) endif endfunc
ah, nevermind, http://www.autoitscript.com/wiki/recursion answered this.
i solved replacing keyword homecoming local variable declared outside function, , set value variable.
return-value autoit
No comments:
Post a Comment