| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 60691 | 2005-08-10 01:20:00 | Simple VB question | netchicken (4843) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 379912 | 2005-08-10 01:20:00 | I want to make a calculator with 3 text entry boxes where the person enters the two numbers and the operator (+-*/). How do I pass the operator to a variable so that VB sees it as an operator and not a string? |
netchicken (4843) | ||
| 379913 | 2005-08-10 05:12:00 | Maybe this will help www.developerfusion.co.uk Alternatively you may try a case statement to look for the operator and multiply or subtract etc as the case may be which is probably easiest. |
Parry (5696) | ||
| 379914 | 2005-08-10 05:35:00 | Personally i would go for the case statement as parry mentioned, i have a feeling I did just that in a similar project when I did a VB intro course years ago | Morgenmuffel (187) | ||
| 1 | |||||