Calling an ASP function

Results 1 to 4 of 4

Thread: Calling an ASP function

  1. #1
    Kel Guest

    Default Calling an ASP function

    I am using the following statement to call an ASP function and I&#039m getting an error. Can you not pass more than one parameter in an ASP function?<BR><BR>function1("a","b",c") Is this not allowed? The error I&#039m getting is &#039parenthesis not allowed&#039.

  2. #2
    Nathen Grass Guest

    Default RE: Calling an ASP function

    Functions always return values so when you call a function you must set it equal to something:<BR>i.e.<BR><BR>myVar = function1("a","b",c")<BR><BR>Functions always use parentheses so if ASP sees parentheses when you&#039re calling a function and you&#039re not setting it equal to something then you&#039re going to get that error.<BR><BR>FYI<BR>A sub-routine, on the other hand, doesn&#039t return a single value so it doesn&#039t use parentheses and you don&#039t set it equal to a variable.<BR>

  3. #3
    Join Date
    Dec 1969

    Default RE: Calling an ASP function

    Another problem if the first response doesn&#039t work is that you are missing a quote around your third parameter. I didn&#039t if you knew that.

  4. #4
    Kel Guest

    Default RE: Calling an ASP function

    Thanks Nathen, that worked!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts