When you declared vcar, you wrote it as: Friend vcar() As String when you
should have written: Friend vcar As String.
The difference is that parenthesis, which indicate that you want vcar to be
a String array (more than one value and therefore needing an index when
assigning values). So, when you wrote: vcar = curItem, you were, in
effect, saying "take this one text value from this textbox and make it be
the value of an array object".
Just take away the () on the vcar definition and you'll be all set.
"baret bonden" <ar****@networks-cc.com> wrote in message
news:2v*************@uni-berlin.de...
I get :Value of type 'String' cannot be converted to '1-dimensional array
of String' refering to curitem
Dim curItem As String
curItem = ListBox1.SelectedItem
TextBox1.Text = curItem
vcar = curItem
I had set up vcar above as in :
Friend vcar() As String
I freely admit to not knowing what I'm doing here; all my 20 yearsof
programming is seemingly worthless ....just trying to pass a variable from
one form to another and found myself with that error, which makes no sense
to me at all ...they are both strings, No ?