Code:
Public Sub UpdateDevice(ByVal iDeviceID As Integer, ByVal dblDeviceValue As Double, ByVal sDeviceString As String) hs.SetDeviceValueByRef(iDeviceID, dblDeviceValue, True) hs.SetDeviceString(iDeviceID, sDeviceString, True) hs.SetDeviceLastChange(iDeviceID, Now) End Sub
Code:
scr As String, func As String, param As Object, Wait As Boolean, SingleInstance As Boolean
- Do I create an array of strings (which means converting before invoking and then again in the sub) and pass it that?
- Do I create an object containing mixed types?
- Do I modify the definition of the sub to accept maybe an object and then parse it?
Comment