473,396 Members | 1,853 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ArrayList.Item

Hi
On Microsoft documentation (both on my MSDN library localy and online) the
System.Collections.ArrayList class contains a Item property.

When I try to use it I can't see that property available (using object
browser).

Has anything changed?

Online Doc URL:
http://msdn.microsoft.com/library/de...sitemtopic.asp
Thanks!
Nov 16 '05 #1
3 5479
Fernando,
C# is only allowed to use the "Item" property via the indexer syntax.

Unlike VB.NET which is able to use either "Item" or indexer syntax.

Use something like:
ArrayList list;

Object o = list[0];
list[0] = o;

Hope this helps
Jay

"Fernando Chilvarguer" <fe******@nospam-impex.com> wrote in message
news:uF**************@TK2MSFTNGP11.phx.gbl...
Hi
On Microsoft documentation (both on my MSDN library localy and online) the
System.Collections.ArrayList class contains a Item property.

When I try to use it I can't see that property available (using object
browser).

Has anything changed?

Online Doc URL:
http://msdn.microsoft.com/library/de...sitemtopic.asp

Thanks!

Nov 16 '05 #2
Hi,

Look for a property named 'this' in the Object Browser. This represents the
Item (indexer) property in C#.

HTH

"Fernando Chilvarguer" <fe******@nospam-impex.com> wrote in message
news:uF**************@TK2MSFTNGP11.phx.gbl...
Hi
On Microsoft documentation (both on my MSDN library localy and online) the
System.Collections.ArrayList class contains a Item property.

When I try to use it I can't see that property available (using object
browser).

Has anything changed?

Online Doc URL:
http://msdn.microsoft.com/library/de...sitemtopic.asp
Thanks!

Nov 16 '05 #3
Thanks!! It works.

"Fernando Chilvarguer" <fe******@nospam-impex.com> wrote in message
news:uF**************@TK2MSFTNGP11.phx.gbl...
Hi
On Microsoft documentation (both on my MSDN library localy and online) the
System.Collections.ArrayList class contains a Item property.

When I try to use it I can't see that property available (using object
browser).

Has anything changed?

Online Doc URL:
http://msdn.microsoft.com/library/de...sitemtopic.asp

Thanks!

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Brian Underhill via DotNetMonster.com | last post by:
Is the .Item property not availible or is it called something else? How would you get an indexed value from an arrayList? for(j=0;j<3;j++) { arrayvalue=MyarrayList.Item(j); } --
4
by: Tamir Khason | last post by:
How can I set the type of the object added to ArrayList (type of Array List Members) Here is the code: protected ArrayList tabs = new ArrayList(); public ArrayList Tabs {
0
by: Gerrit Horeis | last post by:
Hi @all! I've got some problems with filling an arraylist with some Controls(Labels). When I have filled the arraylist I iterate through it then but cannot find the containing controls via the...
2
by: VB Programmer | last post by:
I have an arraylist which holds a custom structure I made. (The structure contains FirstName, LastName, Address and EmpId.) I am trying to loop through the arraylist to write out each item. ...
16
by: stojilcoviz | last post by:
I've a datagrid whose datasource is an arraylist object. The arraylist holds many instances of a specific class. I've two questions about this: 1 - Is there a way by which I can obtain a...
8
by: wg | last post by:
I have worked on this for a while and have not been able to get it working. I seem to be missing something. What I am attempting to do is get information from a csv file such as: name (stirng),...
1
by: dotnetnoob | last post by:
i have a arraylist that store String() array the string array hold value 1 2 4 i want to access the string array that is inside the arraylist one arraylist item at the time i search up and...
14
by: budy_ludy | last post by:
Hi All, I am new to vb .net, I have an ArrayList and i store class objects in it, and later i want to retrieve each ArrayList items and type cast to the class, How can it be done ? I used...
2
by: forest demon | last post by:
in a different app, i can grab the index of a ListBox, but when i try it with a listview with only one column, i'm having issues. the first line (string) below works as expected. the second line...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.