Solved

Calculator

Posted on 2001-07-19
7
242 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
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

863 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

22 Experts available now in Live!

Get 1:1 Help Now