Originally posted by tenholde
View Post
Of course if you use an Object like I described, it will not make any difference.
Here is expanded code for handling input from both HS3 and HS Touch. Assuming that HS3 will pass a single string, with the three parmeters separated by commas (i.e. "A,B,C"), and HS Touch will pass three strings (in one array of strings):
Code:
Public Sub Main(ByVal parms As Object) Dim P1 As String = "", P2 As String = "", P3 As String = "" If parms.GetType().ToString = "System.String" Then Dim P() As String = parms.ToString().Split(",") P1 = P(0) P2 = P(1) P3 = P(2) Else P1 = parms(0).ToString P2 = parms(1).ToString P3 = parms(2).ToString End If ... End Sub
Comment