by Spike » Thu Feb 03, 2011 6:43 pm
Hello, can anybody help me with these problems?
Problem 1:
I'd like to bring prices in using the COM and write them to an array variable without using a loop - is this possible?
At the moment I use a loop along the lines of:
For Each priceitem In prices
backPrice(I) = priceitem.backodds1
I = I + 1
Next
Ideally I'd like to just get it done in one swift operation - any ideas?
Problem 2:
Again, using the COM I'd like to place several bets simultaneously without using a loop, I have all the data stored in Array variables, so say I have the selections, prices and stakes stored in variables called selections(), prices() and stakes() with each corresponding to the other - so selection(1) goes with prices(1) and so on. How do I place all those bets at once without a loop?
Any help with either or both of these questions would be much appreciated.