Hi Everyone. this is the last part of my function Case "December" If cbMonthly.SelectedItem = "December" Then Dim DecStart As String = "-12-01" Dim DecFin As String = "-01-01" M12S = String.Concat(Year, DecStart) M12F = String.Concat(Year, DecFin) End If End Select Dim Places As New List(Of String) Places.Add(M12S) Places.Add(M12F) Return Places in my button click event, which calls my function, i get an out of bounds error Dim Places As New List(Of String) GetMonth() Dim M12S As String = Places.Item(0) Dim M12F As String = Places.Item(1) Can anybody tell me what i am doing wrong. Many Thanks

Member Avatar
Member Avatar
+0 forum 1

i have this error when i display my program ? ' ' Created by SharpDevelop. ' User: s11088659 ' Date: 5/28/2014 ' Time: 11:26 AM ' ' To change this template use Tools | Options | Coding | Edit Standard Headers. ' Public Partial Class MainForm Public Sub New() ' The Me.InitializeComponent call is required for Windows Forms designer support. Me.InitializeComponent() ' ' TODO : Add constructor code after InitializeComponents ' End Sub private Sub DisplaybuttonClick(byval sender As Object,byval e As system.EventArgs) 'Declare variable of array name and grade of student 'Dim strNames() As String = {“Hova”, “Nemo”, “Zoc”, “Lucas”,“Phuket”, …

Member Avatar
Member Avatar
+0 forum 4

The End.