I am working through a script that grabs a json string and breaks it into rows and colums. Basicly I get 4 rows and 4 col in each row.
What is the most efficient way to assign these values to a homeseer device?
You can see I have one device named "Stove" created.
I know this should be simple, but I am struggling as a newbie with .net.
Do I use nested select case here, or is there an easier way?
What is the most efficient way to assign these values to a homeseer device?
Code:
I use this: For row As Integer = 0 To data.Count - 1 rowdata = data(row) For col As Integer = 0 To rowdata.Count - 1 item = rowdata(col) hs.WriteLog(logName, "row " & row + 1 & " column " & col + 1 & " entry=" & item) hs.SetDeviceValueByName("Stove ", item) hs.SetDeviceString(655, item, true) Next Next
I know this should be simple, but I am struggling as a newbie with .net.
Do I use nested select case here, or is there an easier way?
Comment