Data Swap between ListBoxs
Hey, im working on a program for my Linkshell in FFXI. I'm trying to make Members & Attendance listbox that allows the user to select multiple Members from the Member listbox on the left and put them onto the Attendance lisbox.
I was able to make it so they can add 1 name at a time, but being able to select multiple names and hitting "add" once would be nice.
Here is a Screenshot of what I have so far. The attendance section im working on is the top left.
http://img.photobucket.com/albums/v121/egotave/WDGProg10.png
[552 byte] By [
NP209] at [2007-11-11 10:22:39]

# 1 Re: Data Swap between ListBoxs
Private Sub btnAdd_Click()
Dim I As Integer
' Step backward through list, so that we can
' remove items without throwing off the count
For I = lstMembers.ListCount - 1 To 0 Step -1
' If item is selected...
If lstMembers.Selected(I) Then
' Copy to top of attendance list
lstAttendance.AddItem lstMembers.List(I), 0
' Remove from members list
lstMembers.RemoveItem I
End If
Next
End Sub