Hi
My VB program crashes occasionally when a result does not exist. For example:
For n = 0 To 5
If theRunner(0).result(0).runners(0).ex.availableToLay(n).price > 10 Then………………………
Next n
Sometimes only ex.availableToLay(0),ex.availableToLay(1) are present if the response from server.
How can I check if it exists without crashing prog.
I tried:
If theRunner(0).result(0).runners(0).ex.availableToLay(n).price = NOTHING Then………………
But this crashes.
Thanks.