Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multi-dimensional arrays
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00678465
Message ID:
00678560
Views:
19
>>Note that you dont have to create the asign method to assign the values...
>>And this is more strait foward :-)
>>
>>
>>struct PERSONS{
>>	public string name;
>>	public int age;
>>	}
>>
>>PERSONS[] persons= new PERSONS[4];
>>
>>persons[0].name="Claudio";
>>persons[0].age=32;
>>persons[1].name="Michel";
>>persons[1].age=25;
>>...
>>
>>
>
>hmmm... this one is really nice. I like that. :)
>(saving it to "my favorites"...) ;)

If you like this one, you may want to take a look at the collection class.
This kind of object does not have to be pre-sized and can be resized at run time.
Its more powerfull than a simple array :-)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform