The tips window should show in this instance

listbox.addrow()
listbox.addrow(text as string)

but I've found that this is not always the case, and that it often only shows one option or the other.

I think the obvious solution here would be to add an optional string parameter to your Overloaded Function.


i.e.
Function AddRow(optional text as string)

//do my stuff
addRow ""

End Function

The result should be an Overriden function, not an Overloaded one, so the confusion should disappear (maybe).

- Tom

On 05/02/2007, at 6:47 AM, Don Jungk wrote:

Hi,
I'm using a subclassed listBox to create a control kind of like the layers palette in Photoshop. Since I'm handling the multiple selections myself, I have a boolean array property to keep track of slections. This means that when I add or remove rows, I have to update the selection array. So, I added
a method named "AddRow" which takes no parameters and has this code:

// do my stuff
AddRow ""

This seems to work perfectly. Except that everytime I open the code editor, it has "Text As String" as a parameter. If I forget to delete it, the obvious compiler error happens. So, is this an IDE bug/feature or is it correctly
telling me that I shouldn't be doing this?

Obviously, I can change the name of the method to myAddRow or whatever. It just seems more convenient not to have to remember to use the correct one
each time.

Don Jungk
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to