ASP“在调用Sub时不能使用括号"

编程入门 行业动态 更新时间:2024-10-23 14:26:09
本文介绍了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时不能使用括号"

本文发布于:2023-11-05 09:56:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1560533.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:括号   ASP   quot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!