For the last hour I have been struggling with VB6 and a really irritating problem that I think is a bug in their IDE or something.
I'm trying to get AnnaVU saving into the logo editor.
I have a function called "SaveBinFile" that takes one parameter: The path and file name to save.
Looks like this:
Sub SaveBinFile(PathAndFileName As String)
I want to extend this and add another parameter to handle saving AnnaVu files:
Sub SaveBinFile(PathAndFileName As String, Optional AnnaVu As String)
This is all fine. Since the argument is optional, the original calls to this function still work. But when I try to call the function with two parameters, there is a syntax error. The IDE tells me there's a second parameter there just fine in the quickinfo, but it won't let me add it.
Even If I make the second parameter non-optional...
Sub SaveBinFile(PathAndFileName As String, AnnaVu As String)
Same problem. The IDE won't let me enter any call to this function with two parameters. The IDE thinks that one parameter is good, and two parameters is evil. Screen shots:
AAAARGH!!!!