Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Collection behavior when adding a new item
Message
From
24/07/2006 18:18:25
 
 
To
24/07/2006 17:52:34
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01138855
Message ID:
01139478
Views:
13
>Off the top of my head this is one way... there are many others...
>
>
>ArrayList al = new ArrayList();
>
>object[] myObject = new object[2];
>object[1] = "My first condition";
>object[2] = "My second condition";
>al.Add(myObject);
>
>object[1] = "My first condition 2";
>object[2] = "My second condition 2";
>al.Add(myObject);
>
>StringBuilder sb = new StringBuilder();
>foreach (object[] obj in al)
>{
>     sb.Append(obj[1].ToString() + ', ');
>     sb.Append(obj[2].ToString() + Environment.NewLine);
>}
>
>MessageBox.Show(sb.ToString());
>
Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform