Jump to content

func help please


Aceguy
 Share

Recommended Posts

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
Link to comment
Share on other sites

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...