just when i thought i was getting near the end of debugging

Discuss anything related to using the program (eg. triggered betting tactics)

Moderator: 2020vision

just when i thought i was getting near the end of debugging

Postby Fixador » Thu Feb 14, 2008 4:11 pm

Hi All,

Another day - another baffling bug........

When i open an Excel workbook , i get the message " Complie error : Variable not defined

the variable is the array CompressedData() . The error comes up in the following code:-
Code: Select all
Private Sub Compressor_DataAdd(DataStream, LongCol, MayBet)
Dim CompressLen As Integer  'DataStream As Integer, LongCol As Integer , MayBet As Single
CompressLen = dInput_ArraySize(DataStream) - 249 'NOTE : subtract 249 as function adds this on
If CompressLen = LongCol Then ' need to increase size of CompressedData() by 1
    ReDim Preserve CompressedData(CompressLen + 1)
End If            'now add new equity change to last data in CompressedData()
CompressedData(DataStream, CompressLen + 1) = CompressedData(DataStream, CompressLen) + MayBet
End Sub


BUT - i have defined the array - at module level as

Code: Select all
Public CompressorData() As Single


anyone got any ideas ?????
Fixador
 
Posts: 322
Joined: Mon Apr 23, 2007 9:24 am

Postby Fixador » Thu Feb 14, 2008 4:13 pm

oh crap ! I have spotted it

CompressedData()

isnt

CompressorData()



:oops: :oops: :oops: :oops:
Fixador
 
Posts: 322
Joined: Mon Apr 23, 2007 9:24 am

Postby PeteB » Thu Feb 14, 2008 4:28 pm

If you add "Option Explicit" at the top of every file, the compiler will find things like this for you
PeteB
 
Posts: 258
Joined: Tue May 23, 2006 12:13 pm

Postby Fixador » Thu Feb 14, 2008 4:46 pm

hi PeteB - yes , i have got that - it was just that the spelling was so close - i could not see what was bringing the 'yellow' line up

:oops: :oops:
Fixador
 
Posts: 322
Joined: Mon Apr 23, 2007 9:24 am


Return to Discussion

Who is online

Users browsing this forum: No registered users and 114 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.