473,395 Members | 1,348 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Pharmacy Calculations

Hello, I work at a hospital pharmacy and recently wrote my first VBasic program using Microsoft Visual Basic 2005 Express Edition. It works beautifully every time and does EXACTLY what I want it to. It does some calculations that are very tedious to do by hand. I want to put it on the web some other pharmacy's can use it. I figured out how to Publish it to a web-site for people to download and run, but I would like to be able to use it on the web without having to download it. Does that make sense? Any idease would be greatly appreciated.
Jul 3 '06 #1
2 3833
sashi
1,754 Expert 1GB
Hi there,

emm.. create a web based application would be the solution i guess.. :) good luck my fren..
Jul 3 '06 #2
Banfa
9,065 Expert Mod 8TB
Probably the thing to do would be to create an HTML form to input the data and use Javascript as the back end to take the input calculate the result and display the answer.

Here is a simplified example of such a calculator

[html]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<title>Calculator</title>

<script type="text/Javascript">
<!--
function Calculate()
{
var Op1 = document.getElementById("Op1");
var Op2 = document.getElementById("Op2");
var Answer = document.getElementById("Answer");

if ( Op1 && Op2 && Answer )
{
var result = eval(Op1.value) + eval(Op2.value);

Answer.innerHTML = result;
}
}
//-->
</script>

</head>
<body>

<form id="Calc">

<table>
<tr>
<th><label for="Op1">Operand 1</label></th>
<td><input type="text" id="Op1" name="Op1"></td>
</tr>
<tr>
<th><label for="Op2">Operand 2</label></th>
<td><input type="text" id="Op2" name="Op2"></td>
</tr>
<tr>
<th>Answer</th>
<td id="Answer">???</td>
</tr>
<tr>
<td colspan="2" class="text-align:center;"><input type="button" onclick="Calculate()" value="Sum"></td>
</tr>
</table>
</form>

</body>
</html>
[/html]
Jul 3 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: lduperval | last post by:
Hi, I`m trying to do date calculations in three types of time zones: local, GMT and specified. The issue I am facing is that I need to be able to specify a date in the proper time zone, and I`m...
0
by: karentataka | last post by:
Start saving, best online pharmacy here http://gjlabeh.cuchezfarg.com/?cdfikmabehxwvrsygzchcmjl
0
by: karentataka | last post by:
Start saving, best online pharmacy here http://gjlabeh.cuchezfarg.com/?cdfikmabehxwvrsygzchcmjl
0
by: karentataka | last post by:
Start saving, best online pharmacy here http://gjlabeh.cuchezfarg.com/?cdfikmabehxwvrsygzchcmjl
0
by: gherlylu | last post by:
Start saving, best online pharmacy here http://fjmgilbh.zarubanlo.net/?acdekbhxwvrsyfjmzchcmgil
0
by: gherlylu | last post by:
Start saving, best online pharmacy here http://defgjkmahl.nufehrurald.net/?bciahlxwvrsydefgjkzchcmm
0
by: gherlylu | last post by:
Start saving, best online pharmacy here http://fjmgilbh.zarubanlo.net/?acdekbhxwvrsyfjmzchcmgil
0
by: gherlylu | last post by:
Start saving, best online pharmacy here http://fjmgilbh.zarubanlo.net/?acdekbhxwvrsyfjmzchcmgil
0
by: gherlylu | last post by:
Start saving, best online pharmacy here http://hlaikcdfgm.wybjyasdot.com/?bejcdfgmxwvrsyhlzchcmaik
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.