Hi ehwagner,
Hi Derek,
Thanks for the latest updates.....
Lets consider real life situation. For instance, I can start a business with borrowed money (minus starting balance) or my own money (plus starting balance) but I cannot start with zero (this is where pop-up message should be applicable as 'Starting balance cannot be zero' in proper way of doing it. No message needed for ending balance as I can end with plus, minus or zero.
examples:
1. Starting balance 100, ending balance -50 calc profit / loss should show: -150
2. Starting balance 100, ending balance 0 calc profit / loss should show: -100
3. Starting balance -100, ending balance 25 calc profit / loss should show: -75
4. Starting balance -200, ending balance -100 calc profit / loss should show: -300
5. Starting balance 150, ending balance 175 calc profit / loss should show: 25
6. Starting balance 150, ending balance 125 calc profit / loss should show: -25
Form1.Edit3.Value := Form1.Edit2.value - Form1.Edit1.Value;
Since edit1 holds the base value shouldn't the above be like this:
Form1.Edit3.Value := Form1.Edit1.value - Form1.Edit2.Value;
On latest update, unfortunately instant display is gone. I assume it's due to waiting for user to enter ending balance value before calc takes place.
Adam
God... please help me become the person my dog thinks I am.