Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Designated times
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00323807
Message ID:
00323820
Views:
17
>>I've got a form that needs to perform at two specific times of day and not on weekends.(Once in the morning and once in the afternoon.) I have a simulated loop that runs 24 hours a day. So all I need to do is tell him 'Hey! It's 2PM! Do this now!'
>>
>>Thank You...
>>Tom Welch
>
>Hi Tom,
>
>SECONDS() function gives you the time in seconds since midnight, so 2 PM corresponds 50400 sec.
>
>IF SECONDS() = 50400
>*run my app
>ENDIF
>
>Nick


Of course, it may not fire in your loop at exact moment so you can change it to IF SECONDS() >= 50400 and set the flag that it was already run for 2 PM today.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform