问题
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