ASP“在调用Sub时不能使用括号" [英] ASP "Cannot use parentheses when calling a Sub "

查看:197
本文介绍了ASP“在调用Sub时不能使用括号"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
调用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时不能使用括号"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆