![]() |
|
|
|||||||
![]() |
|
|
Thread Tools | Rate Thread |
|
|
PM User | #1 |
|
Senior Coder ![]() Join Date: Apr 2004
Location: Toronto
Posts: 1,654
Thanks: 9
Thanked 72 Times in 72 Posts
![]() |
parentheses when calling a Sub
Hello,
having a problem with calling a function. I'm getting this error: Cannot use parentheses when calling a Sub functions.asp, line 786 GetClientList(value,1) ----------------------^ so I change it to: GetClientList(value)(1) then I get this error: Wrong number of arguments or invalid property assignment: 'GetClientList' functions.asp, line 786 so what should I do to fix this? never had this problem before. seems kind of strange. thanks in advance for your time! -SiX |
|
|
|
|
|
PM User | #5 |
|
Regular Coder ![]() Join Date: Jun 2002
Location: Victoria, BC, Canada
Posts: 962
Thanks: 0
Thanked 1 Time in 1 Post
![]() |
VBScript in Classic ASP is a little weird in that you only use parentheses when calling functions (that return a result), not when calling subs (that just do something, without returning a result).
VB.NET in ASP.NET allows usage of parentheses when calling subs. Strange... |
|
|
|
|
|
PM User | #7 |
|
Senior Coder ![]() Join Date: Apr 2004
Location: Toronto
Posts: 1,654
Thanks: 9
Thanked 72 Times in 72 Posts
![]() |
ah,
ok, i see what your saying now. I've reading about it, didn't really understand what the article was saying, on the MS site, they were saying something about only using parentheses depending on if the value being stend to the function is ByVar, or by ByVal. but that didn't make any sence to me..lol. thanks again. -SiX |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Rate This Thread | |
|
|