Array problem

  • Thread starter Thread starter Agnes
  • Start date Start date
A

Agnes

I declare a object named objCompany, and create an array property.
I am fail to put the value into that array

statment 1 Fail : objCompany.address_array =
{"room","building","city","country"}

However, If i declare another array before, I am succesfuly E.g
Dim arData() As String = {"room","building","city","country"}
objCompany.address_arra = arData


Why my statement 1 is fail ??
 
* "Agnes said:
I declare a object named objCompany, and create an array property.
I am fail to put the value into that array

statment 1 Fail : objCompany.address_array =
{"room","building","city","country"}

However, If i declare another array before, I am succesfuly E.g
Dim arData() As String = {"room","building","city","country"}
objCompany.address_arra = arData

\\\
objCompany.address_array = _
New String() {"room", "building", "city", "country"}
///
 
Back
Top