Implement a number of parameters to function to function in VB

zhaozj2021-02-16  99

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

转载请注明原文地址:https://www.9cbs.com/read-16900.html

New Post(0)