By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,299 Members | 1,384 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,299 IT Pros & Developers. It's quick & easy.

Array problem

P: n/a
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 ??

Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
* "Agnes" <ag***@dynamictech.com.hk> scripsit:
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"}
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.