Home | Advertising Info98 USERS CURRENTLY ONLINE   
   Site Search Contact Us Wednesday, March 29, 2017  

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

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 programs help tutorial tutorials routine routines jobs listserve mailinglist bulletin board bulletin boards programming snippet snippets 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


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:


2 working days from today is <%=carda%>
2 working days from today is <%response.write Int(carda) + Int(cardb)%>

<%Function carda

If cards=1 Then
response.write Int(5)
Elseif cards>1 Then
response.write Int(20)
End If

End Function

<%Function cardb

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 - 2017 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.

vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program 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