ASP“调用 Sub 时不能使用括号”
可能的重复:
调用 Sub 时不能使用括号
据我所知是正确的,但我收到错误“调用 Sub 时无法使用括号” 以前从未使用过 ASP...有人可以帮我解释一下这个问题吗?代码:
<%TESTWeb1.RecentlyViewedDisplay("Recently Viewed Header","Recently Viewed Entry","Recently Viewed Group Entry")%>
Possible Duplicate:
Cannot use parentheses when calling a Sub
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")%>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 VB6 类型语言中,仅在调用函数或使用
Call
关键字调用子函数时才需要括号。例如,
我认为在您的情况下,从调用中取出括号应该可以工作(尽管我无法检查,因为我没有方便的 ASP 配置环境。
In VB6 type languages you only need parentheses when calling a function, or when calling a sub using the
Call
keyword.e.g.
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.