Subroutines

Stulish

Active Member
Licensed User
Longtime User
:sign0085: one question, is there a way to make a subroutine input optional for example:

Sub someName(num As Int, optional num As Int default=0) As String

I have highlighted and set in bold the extra keywords this way if the second value is left empty than a default value would be inserted???

This is just a question from a :sign0104: and there probably is a way of doing it, i just haven't found it yet (but will keep looking)

Thanks everyone for some great tips and code on this forum, i am just starting to get to grips with it all :sign0098:

Stu
 

Stulish

Active Member
Licensed User
Longtime User
Ok, thanks, i was just wondering if i was beening a complete :sign0104: and not finding the correct way of implementing
 
Top