Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Sep 2004
    Posts
    713
    Thanks
    6
    Thanked 2 Times in 2 Posts

    ASP Newbie question, can a function hold two parameters

    Code:
    <%
    Dim sum
    Function thesum(value1,value2)
    Dim sum
    sum=value1+value2
    End Function
    sum=thesum(2,5)
    response.write sum
    %>
    the code above is unsuccessful, by the way, where can i download asp manual just like php one
    flying dagger

  • #2
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,172
    Thanks
    19
    Thanked 65 Times in 64 Posts
    Code:
    Dim sum
    
    Function thesum(value1,value2)
    thesum=value1+value2
    End Function
    
    sum=thesum(2,5)
    response.write sum

  • #3
    Regular Coder
    Join Date
    Sep 2004
    Posts
    713
    Thanks
    6
    Thanked 2 Times in 2 Posts
    thanks a lot
    flying dagger

  • #4
    Regular Coder
    Join Date
    Aug 2002
    Location
    USA
    Posts
    478
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Windows Script
    http://msdn.microsoft.com/scripting/default.asp
    Official Microsoft and up to date.

    Visual Basic Scripting Edition VBScript Language Reference
    http://msdn.microsoft.com/library/de...bscripttoc.asp

    Visual Basic Scripting Edition Functions
    http://msdn.microsoft.com/library/de...ifunctions.asp
    J. Paul Schmidt
    www.Bullschmidt.com - Freelance Web and Database Developer
    www.Bullschmidt.com/DevTip.asp - Classic ASP Design Tips


  •  

    Posting Permissions

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