This is a migrated thread and some comments may be shown as answers.

nullable object must have a value

1 Answer 109 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Marnix Bouwman
Top achievements
Rank 2
Marnix Bouwman asked on 15 Oct 2010, 04:37 PM
Hi, I'm doing this:

        Protected Sub rdScheduler_AppointmentInsert(ByVal sender As Object, ByVal e As Telerik.Web.UI.SchedulerCancelEventArgs) Handles rdScheduler.AppointmentInsert
            Dim objEventInfo As New EventInfo
            objEventInfo.EventSubject = e.Appointment.Subject
            objEventInfo.EventStart = e.Appointment.Start
            objEventInfo.EventEnd = e.Appointment.End
            objEventInfo.EventRecurrenceRule = e.Appointment.RecurrenceRule
            objEventInfo.EventRecurrenceParentId = e.Appointment.RecurrenceParentID
            If Not e.Appointment.Resources.GetResourceByType("User") Is Nothing Then
                objEventInfo.EventUserID = CInt(e.Appointment.Resources.GetResourceByType("User").ToString)
            Else
                objEventInfo.EventUserID = -1
            End If
        End Sub

And I get a "Nullable object must have a value" error

1 Answer, 1 is accepted

Sort by
0
Marnix Bouwman
Top achievements
Rank 2
answered on 15 Oct 2010, 04:40 PM
Oh, never mind... Saw the mistake
Tags
Scheduler
Asked by
Marnix Bouwman
Top achievements
Rank 2
Answers by
Marnix Bouwman
Top achievements
Rank 2
Share this question
or