Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Automatic poller
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00509099
Message ID:
00509161
Vues:
19
>Hi.
>I am currently designing an app for a company which has a Head Office and a Remote Site.They want to be able to tansmit and receive files automatically at regular intervals. e,g,
>Head Office 'Sends' a no. of files and receives files every Hour
>Branch office Receives these files every 2 hours and sends some files back
>(The head Office and Branch office then act on these Files)
>
>Their preferred method is to use Email and a method of accessing Inboxes and Outboxes automatically from VFP. Is this practcal,or is there another utility I should be looking at.
>(The main systems in place are Foxpro)
>
>Regards,
>
>Gerard

Gerard,
You could set it up without polling using the VFPCOM utility. Use the ExportEvents to export the events of the Outlook object. Using the exported file, create a class. Create an object using the new class and use the BindEvents method of the VFPCOM utility to bind the two together. The NewMail and ItemSend events of the Outlook object fire when you receive mail and send mail, respectively. When the Outlook events fire, the bound methods of the same name will fire with your code.

Hope this gives you an idea.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform