Feb 9, 2009 #1 wendas MIS Apr 20, 2001 92 US I have in C# List<DateList> holidaysPassed = new List<DateList>(); I tried Dim holidaysPassed As List<DateList> and that doesn't work. I also have some sites that show differences between C# & VB, but none show List..
I have in C# List<DateList> holidaysPassed = new List<DateList>(); I tried Dim holidaysPassed As List<DateList> and that doesn't work. I also have some sites that show differences between C# & VB, but none show List..
Feb 9, 2009 #2 RiverGuy Programmer Jul 18, 2002 5,011 US I think this is what you're looking for Code: Dim holidaysPassed As List(Of DateList) = New List(Of DateList) Upvote 0 Downvote
I think this is what you're looking for Code: Dim holidaysPassed As List(Of DateList) = New List(Of DateList)
Feb 9, 2009 Thread starter #3 wendas MIS Apr 20, 2001 92 US thanks, I also had to add an Imports System.Collections.Generic for VB when c# it was automatically included.. But other then that that worked. Upvote 0 Downvote
thanks, I also had to add an Imports System.Collections.Generic for VB when c# it was automatically included.. But other then that that worked.
Feb 9, 2009 #4 RiverGuy Programmer Jul 18, 2002 5,011 US Yes, you either need to use the Imports statement or use the fully qualified syntax such as: Code: Dim holidaysPassed As System.Collections.Generic.List(Of DateList) = New system.Collections.Generic.List(Of DateList) Upvote 0 Downvote
Yes, you either need to use the Imports statement or use the fully qualified syntax such as: Code: Dim holidaysPassed As System.Collections.Generic.List(Of DateList) = New system.Collections.Generic.List(Of DateList)