Scheduler help please

We are running Servoy on Windows XP. I have written the following test method:

plugins.scheduler.addCronJob('Test','0 0/2 0 ? * *',testDialog);

I have a global method named “testDialog” containing the following code

plugins.dialogs.showInfoDialog( Scheduler,  "Scheduler fired correctly",  'OK')

When I run my “testSchedule” method I get the following error:

ReferenceError: “testDialog” is not defined. (testSchedule; line 2)
ACTIVITY_1_activity_L.testSchedule

I need to figure out what I am doing wrong. Any help would be appreciated.

You forgot the ‘globals.’ part.
So the code should be:

plugins.scheduler.addCronJob('Test','0 0/2 0 ? * *',globals.testDialog);

I tried it that way as well and still got the error. I will try it again, I just wanted to make sure I was not making any GROSS errors

Still having problems getting this seemingly simple task to work. Does anyone have any suggestions? Is there any system requirements or settings necessary to make this work?