943,740 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Marked Solved
  • Views: 354
  • C# RSS
Mar 9th, 2009
0

arrays ob objs

Expand Post »
hey guys,
I built an array of objects but I don`t know how to access it`s methods or fields.It keeps sending me errors
How should I access them?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
3pid is offline Offline
17 posts
since Apr 2008
Mar 9th, 2009
0

Re: arrays ob objs

Well, thats a little ambiguous

if you have an array of things

such as

C# Syntax (Toggle Plain Text)
  1. Thing[] mythings = new Thing[100];

you can access their methods just like any other normal variable but by adding the [n] option to say which of the objects you are using

Post a snippet of your code (use code tags), explain where its giving you an error and what, and what you expected..
Reputation Points: 196
Solved Threads: 190
Posting Virtuoso
LizR is offline Offline
1,735 posts
since Aug 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: C# Coding
Next Thread in C# Forum Timeline: need XML and html based search engine for c# application





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC