Hi,
When using hs.stringitem in the following code I get an error message:
Error 1 Running script C:\Program Files\HomeSeer HS3\scripts\test-new.vb :Exception has been thrown by the target of an invocation.Public member 'StringItem' on type 'hsapplication' not found.
Any idea what the problem is? I searched for stringitem in the HS3 forum but did not find anything.
When using hs.stringitem in the following code I get an error message:
Error 1 Running script C:\Program Files\HomeSeer HS3\scripts\test-new.vb :Exception has been thrown by the target of an invocation.Public member 'StringItem' on type 'hsapplication' not found.
Any idea what the problem is? I searched for stringitem in the HS3 forum but did not find anything.
HTML Code:
Imports System.IO Public Sub Main(ByVal Parms As Object) Dim arrTest as String Dim strFirst,strSecond as String hs.writelog("test","writelog working") arrTest = "ABC,DEF" strFirst = hs.StringItem(arrTest,1,",") strSecond = hs.StringItem(arrTest,2, ",") hs.writelog("result","strFirst:" & strFirst) hs.writelog("result","strFirst:" & strFirst) End Sub
Comment