Hi, A simple method could be to take each parameter within the function and create a string with a specific dividing character, for example a "|", then return this string.
When this string is returned it could be divided with a "split" and take each parameter again to perform an action.
Here is an example of how to create a split
'Parameters
Dim p1 As Double = 5.3
Dim p2 As Double = 14.2
Dim p3 As Double = 515.8
Dim p4 As String = "Example"
Dim p5 As Double = - 8.8
Dim sep As String = "|"
'Create String
Dim oString As String = p1 & sep & p2 & sep & p3 & sep & p4 & sep & p5
MessageBox.Show(oString)
'Split String
Words = oString.Split(sep)
'List all values
For Each wrd In Words
MessageBox.Show(wrd)
Next
I hope to be clear, greetings!
Please accept as solution and give likes if applicable.
I am attaching my Upwork profile for specific queries.
Sergio Daniel Suarez
Mechanical Designer
| Upwork Profile | LinkedIn