Hi
I'm trying to pass a constantly changing price to an array.
Can anyone tell me what this process/method is called so I can research it, I've found nothing in the books so far.
Any help would be great.
Thanks
Teapot
Hi
I'm trying to pass a constantly changing price to an array.
Can anyone tell me what this process/method is called so I can research it, I've found nothing in the books so far.
Any help would be great.
Thanks
Teapot
Well normally you would do this by rather than using an array you would have an array of objects where on getting the value you retrieves the current value.
might want to try a hashtable
store the item identifier as the key, and the price as the value
then just make a call to hashtable to add they key if not present, or if present update its value
you can do the same thing if you needed to store a class rather than a single value
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.