12-26-2015 07:48 AM
I have aattached VI. trying to make a basic calculator. (staretd making it, first I want to get correct string from user.)
When user enter decimal(.), it should not be able to enter decimal again.
I have made code in which a string match pattern is used to check if decimal is already present. if present then do not add it otherwise add it.
Although whenever I press decimal, match pattern always return true. Don't know why?
12-26-2015 07:57 AM
12-26-2015 08:22 AM
12-26-2015 09:14 AM
I want to make a calculator as in windows. for learning purpose
12-26-2015 12:28 PM - edited 12-26-2015 12:31 PM
12-31-2015 08:14 AM
I cannot use string roll over. Since I am making a calculator as in windows 10. Right now I am making standard version of calc as on windows(Alt+1 press on window calc to open standard version)
If I keep on entering string as such, then it can enter can alphabet A-z,0-9.
In attached VI, currently I have made a part where user can enter string upto 16 places (as in window calc)
Now problem is string eneterd in my VI can be any for example: +0.968, +098.8, -9.89
Now I have to display 0.968,+98.8,-9.89 for above strings.
1. How to do that?
2. Currently I can enter numbers by clicking on VI butons only. How can I enter them by pressing button on keyboard also?
12-31-2015 09:15 AM
You can use the Key Down event with a case structure: