开发者

ASP "Cannot use parentheses when calling a Sub " [duplicate]

This question already has answers here: Closed开发者_如何学编程 11 years ago.

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")%>


In VB6 type languages you only need parentheses when calling a function, or when calling a sub using the Call keyword.

e.g.

DoSoemthing "foo","baa"

Call DoSomething("foo","baa")

myVar = DoSomething("foo","bar")

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜