Microsoft
Software
Hardware
Network
Question : Can I create an array of objects?
I'm rebuilding and app from VB6 to a web application using Silverlight 3 and vb.net. I have a group of 10 products that are continuously used throughout the application. In VB6 a created arrays of textboxes and labels to load all of the information pertaining to the products.
Dim i as integer
For i = 0 to 9
txtPrice(i).text = "database value"
txtCost(i).text = "database value"
next
Trying to do the same thing here but I'm not seeing a way to create an array of textboxes or labels in Expression Blend. Is it possible?
Thanks!
Answer : Can I create an array of objects?
Don't think you can create index on xaml.
You can use Textbox0, Textbox1 etc
and then use FindName to access
ie
for (i=0; i< 10; i++)
{
TextBox t = (TextBox)this.FindName("Te
xtbox" + i.ToString());
t.Text = "database value"
}
Random Solutions
How to open website (hosted on Win Server 2008, IIS) in Microsoft Frontpage 2000?
MS access VB string not updating with fields from search form
SSL Medium Strength Cipher Suites Supported
Insert Range Contents into a UserForm
SQL Query dense rank
Raw Devices in Windows
Data Recovery on Raid 5
ASP.NET 3.5 login page (C#)
is there 64-bit Jet OLEDB Provider??
How remove decimal and 2 trailing zeros from multiple values in field