Vb6 Named Args
Date: 06.29.15 - 3:33am
every once in a while you encounter a new/old feature of a programming language you never realized was there. I still use a 20 year old language that I have been using for literally 20 years and I did not know about this:
It doesn't really matter that you can specify arguments out of order in this exact scenario, where it does come in useful is if you had a function with a lot of optional parameters.. This allows you to only specify the parameters you need, without including a bunch of commas ( an exact number) two hit the specific optional argument that you want.
for such a simple language there is still all kinds of stuff in it that I have not used yet and I still don't know everything about it, and have not used all the types of documents such as ActiveX documents.
here is one other little tidbit i never knew..vb6 will auto convert strings to byte arrays and back. (note they will be unicode translations both ways through to convert to pure ascii still must use strconv)