Clever Timing Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to Compact a Database once a week on a friday at 12pm. Any ideas on
how to achieve this very welcome.
 
Look up CeRunAppAtEvent and CeSetUserNotification. I believe there are
wrappers for these in the openetcf...
They will allow you to run an app at certain time to do whatever your app
does...

Cheers
Daniel
 
Thx Daniel

Can I simplify what I want I have...

Dim day As DayOfWeek
If day = DayOfWeek.Sunday Then
CompactDatabase()
End If

However the PDA thinks everyday is sunday!
How can DayOfWeek be returned correct according to the Device Calender.
 
From memory, the following should work:
Dim day As DayOfWeek = DateTime.Today.DayOfWeek

Cheers
Daniel
 
Since you haven't initialized your Day variable, it being an enumeration has
a value of 0, which translates into Sunday.
 
Back
Top