...

View Full Version : ASP Newbie question, can a function hold two parameters



xiaodao
09-21-2005, 07:25 PM
<%
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

NancyJ
09-21-2005, 07:30 PM
Dim sum

Function thesum(value1,value2)
thesum=value1+value2
End Function

sum=thesum(2,5)
response.write sum

xiaodao
09-21-2005, 07:51 PM
thanks a lot

Bullschmidt
09-22-2005, 12:01 AM
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/default.asp?url=/library/en-us/script56/html/vbscripttoc.asp

Visual Basic Scripting Edition Functions
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/vtorifunctions.asp



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum