(11 hours ago)CharlieJV Wrote: (Yesterday, 03:58 PM)protocog Wrote: ...
I think the readability of your code is top-notch. Anyone might have tiny nit-picky things they might prefer, but then those would be things others might not prefer.
For the giggles ...
I have a cognitive disability made worse by Fuchs Dystrophy (blurry vision). So I'm on a really fussy extreme in regards to code format/organization to keep me from getting stuck in the mud or having sticks stuck in my wheels (i.e. avoid slowdowns trying to process what I'm looking at, and avoid playing "where's Waldo" games.)
You probably don't want to write code this way because I imagine you are going to quickly annoy other people. Me, I'm at an age at which I don't really give a rat's caboose what anybody things (unless they want to pay some significant dinero, at which point I'm like: any way you prefer.)
I respect it. As long as the code works and to me I think works just as well. And I agree, some folks are insanely picky.
(11 hours ago)bplus Wrote: Ha! even less work
Code: (Select All)
Const Conv# = 25.4 '25.4 mm every inch
Dim op% ' 1 if desired conversion is from inches to mm else vise versa
Dim num As Double ' a number to convert
Input "Enter a Number to convert "; num
Input "Enter 1 for conversion to mm from inches any other does vice versa "; op%
Print _IIf(op% = 1, num * Conv#, num / Conv#)
Above and beyond thanks brotha. I have yet to use a _IIf function.