![]() |
| ||
| help with array please 2 Attachment(s) Public Class Form1 for example, the plaza that i was about to click on (in the pic) it is in combobox1, it is plaza, and its starting price is 1000000 dollars. it has a starting price, but depending on how many somebody already owns it has a current price. you can find out the current price by plugging what you know into the equation: newPrice = (current) + (toBuy) * (0.1 * startPrice) you then plug the rest of these into some more code(not shown yet) to get the hours to save up. my question is, how do i make an array that has the name and starting price associated with the combobox1. so when i click the plaza it plugs the startPrice into the equation and it plugs the name into the msgbox output string. please help, ive been struggling with this for a couple weeks now. best regards!!! |
| ||
| Re: help with array please Here is some example code of how to set up an array: 'Declare Array I would actually recommend using an array of a Class instead of using a multidimensional array of type string. |
| All times are GMT -4. The time now is 6:24 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC