Results 1 to 1 of 1
Mar 16, 2013, 22:00 #1
VB net - how to create array and assign value?
It's been such a long time since i touch vb.net and I am having a problem.. it should be a simple one but I am lost.
I want to create a loop string but before that I am trying to learn how to use the string array.
The following code is what I have but there is always error at the line g(1,0)=t
It is not an object instance. How can this be done?
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim g(,) As String Dim t As String = "ok" g(1, 0) = t MsgBox(g(1, 0)) End Sub