Hey people, I'm not sure what is wrong with this code and any help would be greatly appreciated:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim i As Integer = DGVShops.CurrentRow.Index
Dim c As Integer = DGVShops.Item(0, i).Value ' gets value from selected rows first column
Dim s As String = DGVShops.Item(2, i).Value ' gets a string which is the name (3rd column)
ShowMe(c, s) ' passes parameters
End Sub
Private Sub ShowMe(ByVal c, ByVal s)
Select Case c ' which should be an integer...
Case 1 To 46
label.Text = (s + " some text " + c)
End Select
End Sub
I dont think it is passed as a value... although when I used .tostring i managed to get the interger shown.