In VB6, there is a difference between the syntax for a subroutine call and
a function call. The function call is a method with arguments in parentheses,
such as:
success = zip.UnzipMatching("unzipDir","*.jpg",1)
You could also call it as a subroutine, but you *must* leave off the parens:
zip.UnzipMatching "unzipDir", "*.jpg", 1
A function with one argument might seem confusing, because both seem to work:
zip.OpenZip ("test.zip")
and
zip.OpenZip "test.zip"
However, VB6 recognizes the function parameter list by the commas, so the ("test.zip") is just
an expression. You’ll notice that VB6 will insert a space between the method name and
the left paren. However, if you call it as a function, no space is inserted:
success = zip.OpenZip("test.zip")