Solved

Calculator

Posted on 2001-07-19
7
241 Views
Last Modified: 2013-12-18
Does anyone know of any calculator add-ins, formulas, scripts?  I want a button or something in a form where the user could perform weight conversions. And if that's not possible what code would I use to bring up Window's Calculator?  Thanks.
0
Comment
Question by:schmad01
7 Comments
 
LVL 4

Expert Comment

by:sloeber
Comment Utility
you can always make your own calculator.
It's not necessary, I believe that it's a flashy one.
So jou must just make one number-field editable, and one dialog list or something like that with possible conversions.
It's not difficult.

If you dont't know how to do that just let us know

Greets,
Sloeber
0
 

Expert Comment

by:chiranjp
Comment Utility
Try this straight from Notes help:

The following example is specific to Windows:
' Start the Windows Calculator as a normal (not minimized)
' window with focus.
Dim taskId As Integer
taskId% = Shell("CALC.EXE", 1)
0
 

Author Comment

by:schmad01
Comment Utility
In response to sloeber, if at all possible I like to make my own calculator, but I am not sure how.  We only use gallons, grams, kilograms and pounds.  I would need the calculator to do this:  If contracts are made where the contract price is either per pound or per gallon, I would need to be able to calculate the quantity ordered in either gallons,grams, kilograms or pounds. Does that make sense?
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 4

Accepted Solution

by:
sloeber earned 100 total points
Comment Utility
Yes,
Just make a couple of fields
The first field is a number field and is editable.
The second field is a dialog list field and Use formula for choices(second tab), where you write on each row the possible values, gallons, grams, kilograms and pound.
You can give a default value
Your third field is calculated.
And your fourth field is the same as your second, also a dialog list with the values gallons, kilograms, .........

So, If your contract price is made in pounds and you want to calculate it in kilogram, you must just divide it by two.
example
You write in your first field 20
you write in your second field pounds
you write in your fourth field kilograms
Your third field will be 10
This is the formula for your third field
@If(Field1="";"";Field4="";"";Field2="Pounds" and Field4 = "Kilograms"; Field3 = (Field1 / 2); Field2="Kilograms" and Field4="Pounds";Field3 = (Field2 * 2) ;"")

So, you must add for each value a calculation.
Then he automatically calculates your value if you change a value.
DONT forget set automatically refresh field.... in your form properties.
You have also in the dialog key list the options to automatically refresh the fields after keyword change.

I hope that you know now enough about making a calculator.
If you have more question let  us know.
you can also add a nice background or something like that.
Or you can make for each value (kilograms, pounds, ....)
a seperate button, so that when the user click on one of the buttons he automatically updat the calculation.

Greets,
Sloeber

0
 
LVL 10

Expert Comment

by:zvonko
Comment Utility
Hello schmad01,

please complete this question.

Thenks,
zvonko

0
 

Expert Comment

by:f1998341
Comment Utility
Dim taskId As Integer
taskId% = Shell("CALC.EXE", 1)

this works in notes client...
Can anyone tell me as to how this calc can be run from the web????
0
 

Expert Comment

by:SpideyMod
Comment Utility
Force Accepted

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now