Can't get getBalance to work

Please post any questions regarding the program here.

Moderator: 2020vision

Can't get getBalance to work

Postby ians1711 » Thu Dec 08, 2011 4:35 pm

I have a piece of code:

AccountBalance = ba.getBalance(1)

I then do

If AccountBalance.availBalance > 100 then

This fails saying object required - any ideas what is wrong here

Thanks
Ian S
ians1711
 
Posts: 72
Joined: Fri Jul 11, 2008 9:33 pm

Postby GaryRussell » Thu Dec 08, 2011 4:39 pm

getBalance returns on object. You should use set.

eg.
Code: Select all
Set AccountBalance = ba.getBalance(1)
User avatar
GaryRussell
Site Admin
 
Posts: 9894
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby ians1711 » Thu Dec 08, 2011 4:41 pm

Gary
Thanks for the quick reply - i'll give that a try

Ian S
ians1711
 
Posts: 72
Joined: Fri Jul 11, 2008 9:33 pm


Return to Help

Who is online

Users browsing this forum: Google [Bot] and 20 guests

Sports betting software from Gruss Software


The strength of Gruss Software is that it’s been designed by one of you, a frustrated sports punter, and then developed by listening to dozens of like-minded enthusiasts.

Gruss is owned and run by brothers Gary and Mark Russell. Gary discovered Betfair in 2004 and soon realised that using bespoke software to place bets was much more efficient than merely placing them through the website.

Gary built his own software and then enhanced its features after trialling it through other Betfair users and reacting to their improvement ideas, something that still happens today.

He started making a small monthly charge so he could work on it full-time and then recruited Mark to help develop the products and Gruss Software was born.

We think it’s the best of its kind and so do a lot of our customers. But you can never stand still in this game and we’ll continue to improve the software if any more great ideas emerge.

cron