Solved

Calculator

Posted on 2001-07-19
7
245 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 4

Expert Comment

by:sloeber
ID: 6298629
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
ID: 6309636
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
ID: 6309693
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 4

Accepted Solution

by:
sloeber earned 100 total points
ID: 6316164
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
ID: 7026744
Hello schmad01,

please complete this question.

Thenks,
zvonko

0
 

Expert Comment

by:f1998341
ID: 7948846
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
ID: 8293817
Force Accepted

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

730 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