Home | Advertising Info3 USERS CURRENTLY ONLINE   
   Site Search Contact Us Monday, September 01, 2014  
 
 


 
ASPProtect
User Management Application with web based screens that allow you to manage users.
www.ASPProtect.com
 
ASPBanner
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
www.ASPBanner.com
 
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
www.ASPPhotoGallery.com
 
ASPClassifieds
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.
www.ASPClassifieds.com



DISCUSSION ARCHIVES
 
Try a free httpZip trial now and compress for less!


We didn't realize
the site was so popular.

Other Stuff
 

 
 
Active Server Pages ASP control controls class classes module script Scripts applet CJWSoft ASPProtect ASPBanner ASPClassifieds



(Advanced)  (Components)  (Database)  (General)  (Vbscript)




ASPProtect

 
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


 

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright 1998 - 2014 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages ASP programs help tutorial tutorials routine routines jobs listserve mailinglist bulletin board bulletin boards programming snippet snippets CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com