Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A question about timer control

Status
Not open for further replies.

Johnweida

MIS
Apr 29, 2003
91
CN
experts,

I put a timer control in the main form of my app. But it does not work when my app is loading a batch of files. How can I do it ?
Thanks for your help.

John Satellite

P.S.
the Interval property set as 1000
 
John

Can you explain what "it doesn't work" mean? What happens? It doesn't trigger, or it triggers after the batch files are loaded?

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Dear Mike,

it doesn't trigger. I hope it can triggers after the batch of files are loaded. Thank you for your help.

John Satellite
 
John

Does it trigger on its own (without the batch file processing)?

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
JohnWeida

Then that would suggest that VFP cannot handle both processes simultaneously.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Dear Mike,

I think so. Now I am trying another way to remind tasks for users.
The code is below:
************************************************
#DEFINE olMailItem 0
#DEFINE olAppointmentItem 1
#DEFINE olContactItem 2
#DEFINE olTaskItem 3
#DEFINE olJournalItem 4
#DEFINE olNoteItem 5
#DEFINE olPostItem 6
#DEFINE olDistributionListItem 7

oOutlook = CREATEOBJECT("Outlook.Application")
taskOutLook = oOutlook.CreateItem(olTaskItem)
With taskOutLook
.Subject = "This is the subject of my task"
.Body = "This is the body of my task."
.ReminderSet = .t.
.ReminderTime = {^2004/01/31 09:00:00AM}
.DueDate = {^2004/01/31 12:00:00PM}
.ReminderPlaySound = .t.
.Save
EndWith
************************************************
But it works unstable.Sometimes "ReminderSet = .t." cannot be set Outlook's task queue and sometimes "ReminderTime" is wrong. But the the "Subject","Body","DueDate" are always sent to Outlook correctly Would you help me please ?

John Satellite
 
John

I have been following your issue here ( and another website) now for a week and you seem to alternate between using Outlook's task and a VFP timer. I don't how it works at ExpertExchange, but here we would prefer you stick to one problem per thread.
It all depends what exactly you are trying to do. Can you explain what it is you are trying to do? I saw some of you code which seem to suggest you want to use Outlook for messages as well which you cannot do with a VFP timer.


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Dear Mike,

I think the better way to remind users is using task reminder function of Outlook. I tried using timer control to trigger an alarm form but it cannot works stablely for the reason you know. Then I have to change my mind and go back to Outlook.Thanks again for your help.

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top