Hello people,
I get this set of errors running this script on my controller (S6). Running this script in development using TesScripting, it runs fine. Ideas?
...
Compiling script C:\Program Files\HomeSeer HS3\scripts\Test.vb: Type 'SQLiteConnection' is not defined.
Compiling script C:\Program Files\HomeSeer HS3\scripts\Test.vb: Namespace or type specified in the Imports 'System.Data.SQLite' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
Compiling script C:\Program Files\HomeSeer HS3\scripts\Test.vb: Namespace or type specified in the Imports 'System.Core' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
Imports System.Data.SQLite
Imports System.Text
...
Dim cmdString As New StringBuilder
Dim cn As New SQLiteConnection(cnString)
cmdString.AppendLine("SELECT PhoneID, Name FROM Users;")
Dim cmd As New SQLiteCommand(cmdString.ToString, cn)
Dim dr As SQLiteDataReader
cn.Open()
dr = cmd.ExecuteReader()
While dr.Read()
Dim u As User
u.PhoneID = dr.GetString(0).ToString()
u.Name = dr.GetString(1).ToString()
usersList.Add(u)
End While
cn.Close()
cn.Dispose()
End Sub
I get this set of errors running this script on my controller (S6). Running this script in development using TesScripting, it runs fine. Ideas?
...
Compiling script C:\Program Files\HomeSeer HS3\scripts\Test.vb: Type 'SQLiteConnection' is not defined.
Compiling script C:\Program Files\HomeSeer HS3\scripts\Test.vb: Namespace or type specified in the Imports 'System.Data.SQLite' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
Compiling script C:\Program Files\HomeSeer HS3\scripts\Test.vb: Namespace or type specified in the Imports 'System.Core' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
Imports System.Data.SQLite
Imports System.Text
...
Dim cmdString As New StringBuilder
Dim cn As New SQLiteConnection(cnString)
cmdString.AppendLine("SELECT PhoneID, Name FROM Users;")
Dim cmd As New SQLiteCommand(cmdString.ToString, cn)
Dim dr As SQLiteDataReader
cn.Open()
dr = cmd.ExecuteReader()
While dr.Read()
Dim u As User
u.PhoneID = dr.GetString(0).ToString()
u.Name = dr.GetString(1).ToString()
usersList.Add(u)
End While
cn.Close()
cn.Dispose()
End Sub
Comment