473,505 Members | 14,686 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

variables

Hi, Is it possible to declare multiple arrays of the same name. Eg if
I tracking share prices and I use a array STOCKPRICE. Im adding a new
tabpage for each stock I want to follow. So today I follow ony one so
I use STOCKPRICE. Next day I want to follow 3 so I want to use
STOCKPRICE, STOCKPRICE(2) AND STOCKPRICE(3). What Im doing is before
starting Im adding the number of tab pages needed with usercontrols,
then looping through the stocks, updating the arrays, then adding the
details to the relevant tabs. Using the stockname as the tags for the
controls. If I want to select different numbers of stocks each day, I
thought there may be a way to add arrays dynamically. In vba excel I
deed use something like int qwert(1 to 10). Is this possible in c#.
Regards Robert
Dec 18 '07 #1
2 979
Thankyou for your reply, to both my posts now. I hadnt heard of array
of arrays, so I will have to do some reading. Of the top of my head
though, am I right in thinking I can create these at runtime, then add
the arrays(within the array of) in the normal way?
Regars Robert
Dec 18 '07 #2
On Dec 18, 1:33 pm, "RobcPet...@yahoo.co.uk" <RobcPet...@yahoo.co.uk>
wrote:
Thankyou for your reply, to both my posts now. I hadnt heard of array
of arrays, so I will have to do some reading. Of the top of my head
though, am I right in thinking I can create these at runtime, then add
the arrays(within the array of) in the normal way?
Well, arrays always have a fixed size (specified at creation time).
If you want to add dynamically, you'd be better off using ArrayList
(.NET 1.1) or List<T(.NET 2+)

Jon
Dec 18 '07 #3

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

Similar topics

5
3306
by: Ross A. Finlayson | last post by:
Hi, I'm scratching together an Access database. The development box is Office 95, the deployment box Office 2003. So anyways I am griping about forms and global variables. Say for example...
9
8620
by: CDMAPoster | last post by:
About a year ago there was a thread about the use of global variables in A97: http://groups.google.com/group/comp.databases.ms-access/browse_frm/thread/fedc837a5aeb6157 Best Practices by Kang...
7
13661
by: misha | last post by:
Hello. I was wandering if someone could explain to me (or point to some manual) the process of mapping the addresses of host variables by DB2. Especially I would like to know when DB2 decides to...
5
11800
by: Sandman | last post by:
I dont think I understand them. I've read the section on scope in the manual inside out. I'm running PHP 5.2.0 Here is the code I'm working on: //include_me.php <?php $MYVAR = array(); global...
1
29309
weaknessforcats
by: weaknessforcats | last post by:
C++: The Case Against Global Variables Summary This article explores the negative ramifications of using global variables. The use of global variables is such a problem that C++ architects have...
0
7216
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7303
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
7367
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...
0
5613
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4699
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3187
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1528
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.