Aceguy Posted February 12, 2009 Share Posted February 12, 2009 need help with this code, it should return $mtch=0 then $mtch=50 i tried everthing i know $ss="" $mtch="" ConsoleWrite(mtch($mtch) & @LF) ConsoleWrite(mtch($mtch) & @LF) Func mtch($mtch) If IsArray($ss)=0 Then ConsoleWrite("is not array"&@lf) Return $mtch = 0 Dim $ss[51] Else ConsoleWrite("is array"&@LF) $mtch=0 For $_x = 1 To 50 $mtch += 1 Next Return $mtch EndIf EndFunc ;==>mtch [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock Link to comment Share on other sites More sharing options...
Manjish Posted February 12, 2009 Share Posted February 12, 2009 y are u defining the array as dim $ss[51], after return call?? thats ur problem [font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com Link to comment Share on other sites More sharing options...
Authenticity Posted February 12, 2009 Share Posted February 12, 2009 Rofl, don't you see the Dim is never get executed? Link to comment Share on other sites More sharing options...
Manjish Posted February 12, 2009 Share Posted February 12, 2009 here.. this solves ur prob.. $ss="" $mtch="" ConsoleWrite(mtch($mtch) & @LF) ConsoleWrite(mtch($mtch) & @LF) Func mtch($mtch) If IsArray($ss)=0 Then ConsoleWrite("is not array"&@lf) Dim $ss[51] Return $mtch = 0 Else ConsoleWrite("is array"&@LF) $mtch=0 For $_x = 1 To 50 $mtch += 1 Next Return $mtch EndIf EndFunc ;==>mtch [font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com Link to comment Share on other sites More sharing options...
Aceguy Posted February 12, 2009 Author Share Posted February 12, 2009 DOH thanks, saw it after i posted it... was a large cut down of my script.... (which still doesnt return the value i want, can replicate it in a small script tho [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock Link to comment Share on other sites More sharing options...
Manjish Posted February 12, 2009 Share Posted February 12, 2009 wats the prob then?? the script i posted sure gives what u said u want.. [font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now