My Alerts don't work!

 

When I do Alert("Hello!");


I get nothing. Do I have to enable alerts somewhere?


-Jerry

 
Check Tools->Options->Events. "Enable" should be marked and "Alerts" enabled.
 

Yes that is ticked OK. Still no alerts. I'm baffled. I could understand if there were no sound, but I get no box either.


-Jerry

 
netconuk:

Yes that is ticked OK. Still no alerts. I'm baffled. I could understand if there were no sound, but I get no box either.


-Jerry

Are you testing this in the Strategy Tester or on a chart?

The Strategy Tester ignores certain functions including Alert().


CB

 

Ah!! And there you have it!

Yes, I'm in Tester. It would be really useful to have the Alert in Tester to help debug code (as there's sadly no debugger). Also there's a Break Point feature in the Editor, but that doesn't seem to work either.


-Jerry

 
netconuk:

Ah!! And there you have it!

Yes, I'm in Tester. It would be really useful to have the Alert in Tester to help debug code (as there's sadly no debugger). Also there's a Break Point feature in the Editor, but that doesn't seem to work either.


-Jerry

Use Print().


CB

 

I was trying to find a way round the fact that you can't use Breakpoints. If I could Alert, at least the code would stop there.


As an aside, why is there a breakpoint feature in the editor?


-Jerry

Reason: