I am writing a specialized Point Of Sale system and on the screen there are 5 buttons that function as 'tabs". There are also a set of 15 buttons (3 columns by 5 rows) that will function as product buttons. I need to assign the TItles (and other stuff) of each button whenever a particular Tab is pressed. SInce there are 5 tabs with 15 buttons per tab, that's a total of 75 products to display. I have the products stored in a way that assigns 1-5 and 1-15 for each product.
I think I need to read the products via API and build a set of session array(s), and then whenever a Tab button is pressed, it uses the Tab value corresponding to the Tab button pressed to grab the right 15 products from the array, and then assigns the products to the corresponding 15 buttons using the vlues also stored.
So there are 2 tasks that I am trying to figure out- 1) how to write an API that stores the returned recordset in a session array, and 2) What is the syntax used in referencing that array to change the value of a button? I'd use Static, that part I know.