Specified Insert Index when adding an item is ignored


Id: 4089.7
Type: Bug Bug
Current Status: Resolved


29 May 2003 Open Greg Thomson

I noticed another thing with the ListView control. When you add a new item tehre is an option to specify the Index. Nothing happens when you pass in an Index value. I looked into it, and noticed that you do nothing with the value. I fixed the problem by giving Index an optional default value of -1, and in the add function putting

If Index = -1 Then lIndex = ctl.fCount + 1 Else lIndex = IndexEnd If
20 Jun 2003 Resolved Steve McMahon

Fixed. I used IsMissing on the Index parameter and put some error tracking in but otherwise the same.