CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Cannot use parentheses when calling a Sub

Print topic Send  topic

Author Message
Aaron
Posted: 02/19/2003, 12:52 PM

Here's the error:

Microsoft VBScript compilation error '800a0414'
Cannot use parentheses when calling a Sub
/main/designs/catalog_events.asp, line 42

resizer.SetPNGDefaultBackground(0,0,0,0,0)
------------------------------------------^

Here's the line of code I am running in a Before Show Custom Code:

resizer.SetPNGDefaultBackground(0,0,0,0,0)

If I can't use a (), how do I pull this off?

EMG
Posted: 02/19/2003, 2:21 PM

remove the ( and ) and leave a space between the sub name and your first parameter. Seperate parameters with commas as usual:

resizer.SetPNGDefaultBackground 0,0,0,0,0
Aaron
Posted: 02/19/2003, 3:05 PM

Added Call to beginning of line and all is well.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.