Announcement
Collapse
No announcement yet.
Compile error
Collapse
X
-
Here is some code This runs in Tenscripting but produces a compile error in Homeseer.
It runs in both if I comment out this line .....TempList = {20, 23, 24, 21, 21, 23}
Public Sub Main(ByVal Parms As Object)
Dim HouseTime As Integer = hs.DeviceValue(302) '0= Night, 25=Morning, 50=Day, 75=Evening
Dim TempList() 'YripTemp, BedroomTarget, DrawingTarget, CinemaTarget, GamesTarget,StudyTarget
Select Case HouseTime
Case 25 'morning
TempList = {20, 23, 24, 21, 21, 23}
hs.WriteLog("Success", "Morning")
Case Else
hs.WriteLog("Success", "Day")
End Select
End Sub
-
Originally posted by stefxx View PostTry this:
TempList = New Object() {20, 23, 24, 21, 21, 23}
I did sort out a workaround, similar to that.
So overall it is a mono issue (i.e. code that will work in Windows but not Linux) or it could be a Mono version issue as I upgraded to Mono 4 but then all of my working scripts refused to compile at all. So back to 3.28.
Comment
Comment