Re: "Cannot use parentheses when calling a Sub" runtime error
From: Bob Barrows [MVP] (reb01501_at_NOyahoo.SPAMcom)
Date: 09/16/04
- Next message: Bob Barrows [MVP]: "Re: Microsoft OLE DB Provider for SQL Server (0x80004005)"
- Previous message: Vince: "Re: RegExp pattern"
- In reply to: Throxy: "Re: "Cannot use parentheses when calling a Sub" runtime error"
- Next in thread: Throxy: "Re: "Cannot use parentheses when calling a Sub" runtime error"
- Reply: Throxy: "Re: "Cannot use parentheses when calling a Sub" runtime error"
- Reply: Throxy: "Re: "Cannot use parentheses when calling a Sub" runtime error"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 16 Sep 2004 11:25:58 -0400
Throxy wrote:
> The routine has a series of "Set" statements, so I know if putting
> Call in front, or replacing Set with Call will work.
No!!! Do not replace Set with Call. They do two different things!
None of the lines using Set involve calls to subroutines. You need to read
up on the difference between subs and functions.
> Below is the
> code:
>
> ***************************************************
>
<snip of irrelevant HTML.>
> <SCRIPT LANGUAGE="VBSCRIPT">
> '-- Groupwise Constants:
> const egwTo = 0
> const egwCC = 1
> const egwBC = 2
> '-- Global Groupwise Variables
> Dim GroupWise 'As Variant
> Dim vCommander 'As Variant
> Dim Account 'As Variant
> Dim Folder 'As Variant
> Dim StopFlag 'As Variant
>
> xmlFile =
> window.showModalDialog("template_selection.htm","","dialogHeight:10")
A quick scan did not reveal any invalid sub calls.
I suspect the problem may be in template_selection.htm
Bob Barrows
-- Microsoft MVP -- ASP/ASP.NET Please reply to the newsgroup. The email account listed in my From header is my spam trap, so I don't check it very often. You will get a quicker response by posting to the newsgroup.
- Next message: Bob Barrows [MVP]: "Re: Microsoft OLE DB Provider for SQL Server (0x80004005)"
- Previous message: Vince: "Re: RegExp pattern"
- In reply to: Throxy: "Re: "Cannot use parentheses when calling a Sub" runtime error"
- Next in thread: Throxy: "Re: "Cannot use parentheses when calling a Sub" runtime error"
- Reply: Throxy: "Re: "Cannot use parentheses when calling a Sub" runtime error"
- Reply: Throxy: "Re: "Cannot use parentheses when calling a Sub" runtime error"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|