Home | Advertising Info148 USERS CURRENTLY ONLINE   
   Site Search Contact Us Friday, December 15, 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.


We didn't realize
the site was so popular.

Other Stuff

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

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


Subject: Re: How to calculate the value of a string formula
From: Doug Walker
Date: 1/14/1999 1:24:28 PM


Caven wrote:
>In my asp file,(use vbscript language)There is a >text box, User input a string expression,such as >input (7 + 8 ) / 2 - 1 in the text box.
>you know it is a string you entered. it cant use >cdbl function,because it is a string.display:
><%=cdbl("(7+8)/2-1")%>, Its wrong.
>What do i do ?

Hmmmmmm....this is a challege in VBscript. I dont know of an equivalent function to Eval(). Maybe Chris Williams could jump in here.
If you dont mind a client side solution you could try using the onBlur event handler and the Eval() function in javascript. This way the equation is evaluated when the text box loses focus leaving a number you could then handle in VBscript.


Previous Message


   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.

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 www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com