Implementing a number of parameters in VB is actually very easy, and I write the code below, I use it today. Very practical. ^ _ ^
Create a new EXE project, add a listbox1 and command1, the code is as follows:
Option expedition
Public Sub Transferpa (LST As ListBox, Paramarray Items ()) Dim I with Lst .clear for Each I in Items .addItem i Next End Withend Sub
Private Sub Command1_Click () Transferpa List1, "ListItem1", "ListItem2", "ListItem3" End Sub
Click the button, good.
--- By Tang Dang Kong