Would some please provide me some insight...
Background
*********************************************
I have a class (Market) which I instantiate multiple copies of and then
store in a collection (Markets).
There are two primary events which can occur for any one Market;
1.) an OnData event, and
2.) a button_click event (Buttons are set-up to emulate an array of
buttons via a class file, each button is tied to a specific market).
When OnData fires I loop through the range receiving data to determine
which cell (Market) received the data. I then Set Market =
Markets(IndexNumber) and process a series of subs and functions.
While the various sub and functions process another even can
potentially fire, such as another OnData event or a button_click event,
both of which will Set Market = Markets(IndexNumber)
Questions
*********************************************
What thread will take precedence? The event firing or the series of
subs and functions? Is it possible for the "Set Market =" to
change in the middle of processing the various subs and functions or
will that thread be allowed to complete first?
Should I be passing the Markets' Index between subs and functions to
ensure the correct Market is being enacted upon? Or, will this be
handled automatically?
How do you recommend maintaining the state of the Markets' index
during processing?
Thanks everyone!!
Trip
Bookmarks