Hi - Starting to get my feet wet, and I believe I am mixing-up concepts but…
When running the code below, I receive a type mismatch exception on the ListBox - I’ve tried declaring Duration as Integer and then typecasting the subtraction to no avail. I can see I do get the correct value for Duration in the debugger.
Var StartDate As New DateTime(DeliverableStartDatePicker.SelectedDate)
Var EndDate As New DateTime(DeliverableEndDatePicker.SelectedDate)
Var Duration As New DateInterval
Duration = (EndDate - StartDate)
ListBox1.AddRow(CStr(DeliverableDuration))
Is there a good way to “extract” the value from Duration?
Thanks,