|
|
|
|
|
| | |
|
Active Server Pages asp source code database MS SQL MS Access .mdb adovbs.inc cookies calendar codes sql commands scripts asp programming tutorials iis web server components CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Adding Functions |
From: |
Nicholas J. Begich III |
Date: |
7/20/1999 3:48:58 PM |
IP: |
152.204.28.231 |
Please help. I am trying to add a total to my asp calculator at www.pregrade.com/list/calculator.asp
but I cant figure out how to add the results of functions. Ive been expirementing with theon below but every time I run it, the result is 510 rather than 6. How can I get the number to add properly? Your help is GREATLY appreciated.
Below is the text for the function addition I am testing:
<title>functionworkingdays.asp</title>
2 working days from today is <%=carda%>
2 working days from today is <%response.write Int(carda) + Int(cardb)%>
<%Function carda
cards=request.querystring("cardnumber")
If cards=1 Then
response.write Int(5)
Elseif cards>1 Then
response.write Int(20)
End If
End Function
%>
<%Function cardb
cards=request.querystring("cardnumber")
If cards=1 Then
response.write Int(1)
Elseif cards>1 Then
response.write Int(20)
End If
End Function
%>
|
Follow Up - Re: Adding Functions - Tim 7/21/1999 8:18:17 AM
|
|

|
|
|
|
|
|
|
|
|
|