9 hours ago
(9 hours ago)bplus Wrote: Two!
Code: (Select All)Input "Enter a Number to convert , (comma) 1 to convert to mm from inches or ,(comma) any other for inches "; num, op%
Print _IIf(op% = 1, num * 25.4, num / 25.4) ' 25.4 mm per inch
This takes advantage of being able to assign multiple input values to variables.
You're going in the wrong direction here. The usage is getting more obtuse and harder to decipher; not easier. Keep it simple and easy to understand and use. Lines of code don't matter for squat if you can't use the end product easily.