可能重复: 调用Sub时不能使用括号
Possible Duplicate: Cannot use parentheses when calling a Sub
据我所知这是正确的,但是我收到错误消息调用Sub时不能使用括号" 以前从未使用过ASP ...任何人都可以为我解决这个问题吗?代码:
As far as I am aware this is correct but i get the error "Cannot use parentheses when calling a Sub" Never used ASP before...can anyone shed light o nthe issue for me? code:
<%TESTWeb1.RecentlyViewedDisplay("Recently Viewed Header","Recently Viewed Entry","Recently Viewed Group Entry")%>推荐答案
在VB6类型语言中,仅在调用函数或使用Call关键字调用子项时才需要括号.
In VB6 type languages you only need parentheses when calling a function, or when calling a sub using the Call keyword.
例如
DoSoemthing "foo","baa" Call DoSomething("foo","baa") myVar = DoSomething("foo","bar")我认为,在您的情况下,将括号从通话中删除是可行的(尽管我无法检查,因为我没有方便的ASP配置环境.
I think in your case taking the parentheses out of the call should work (although I can't check as I don't have an ASP configured environment handy.
更多推荐
ASP“在调用Sub时不能使用括号"
发布评论