I'm trying to create a aspx page and had assumed that I could plug in my vb.net code.
I have a function that parses Homeseer events in vb.net that works but chokes when I try it in aspx. (Thanks Adam for heads up on the vb.net part)
If I try to use this function in an aspx page I get the following error.
Type 'strEventGroupData' is not defined.
Here is the line that is causing the problem.
Anyone run into this? I'm assuming that I have to declare strEventGroupData but the help page indicates that the return is a type structure. Don't know what that is. This works in a scripting environment, so I'm assuming that I have to declare something that I'm missing.
Thanks
I have a function that parses Homeseer events in vb.net that works but chokes when I try it in aspx. (Thanks Adam for heads up on the vb.net part)
PHP Code:
Public Function getEvents()
Dim cnt As Integer = hs.EventCount
Dim arrEvents() As String
Dim i As Integer = 0
If cnt > 0 Then
Dim evntGroups As strEventGroupData() = hs.Event_Group_Info_All()
For Each evntGrp As strEventGroupData In evntGroups
Try
Dim evnts As strEventData() = hs.Event_Info_Group(evntGrp.GroupID)
For Each evnt As strEventData In evnts
If evnt.GroupName = "XM Radio" Then
' hs.Writelog("Test", evnt.GroupName & " " & evnt.Event_Name)
ReDim Preserve arrEvents(i)
arrEvents(i) = evnt.Event_Name
i = i + 1
End If
Next
Catch ex As Exception
' 'ProcessError(plugin.instance, ex, "SlimServerXML - GenPage()")
' hs.WriteLog("Opps", ex.message)
End Try
'Return Nothing
Next
End If
Return arrEvents
End Function
Type 'strEventGroupData' is not defined.
Here is the line that is causing the problem.
PHP Code:
Dim evntGroups As strEventGroupData() = hs.Event_Group_Info_All()
Thanks
Comment