05-21-2025, 06:41 AM
Ah, got it (well, some of it).I'll "fiddle" and see what I can do with multiple arguments Should be able to work this out now. Thanks both.
(Still don't see why I need Function though, I can do this and lots of other things with Sub and it seems simpler to use).
I was about to go into a similiar explanation as Mr. McNeil but he said it much better than I would have.
I will add, you aren't wrong about being able to do it all with SUB's. I like to say there are always multiple ways to flay a feline.
FUNCTIONS can make your code clearer to read though. And are the excepted means of returning a value. If you ever get into
doing any assembly language coding the distinction between a SUB & a FUNCTION actually completely disappears.
(Still don't see why I need Function though, I can do this and lots of other things with Sub and it seems simpler to use).
I was about to go into a similiar explanation as Mr. McNeil but he said it much better than I would have.
I will add, you aren't wrong about being able to do it all with SUB's. I like to say there are always multiple ways to flay a feline.
FUNCTIONS can make your code clearer to read though. And are the excepted means of returning a value. If you ever get into
doing any assembly language coding the distinction between a SUB & a FUNCTION actually completely disappears.