ASP “Cannot use parentheses when calling a Sub ” [duplicate]

三世轮回 提交于 2020-01-03 17:13:43

问题


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

回答1:


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.



来源:https://stackoverflow.com/questions/6520807/asp-cannot-use-parentheses-when-calling-a-sub

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!