Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does each outlook item have an item#? how do i get it?
Message
De
05/08/2006 11:36:18
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
05/08/2006 11:28:38
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
SAMBA Server
Database:
Visual FoxPro
Divers
Thread ID:
01143223
Message ID:
01143225
Vues:
7
>hi everyone:
>
>busy saturday for me here. i have a second question.
>
>i input calendar items in outlook 2000 from within foxpro. it is done through what i would imagine is a normal automation process.
>
>what i'm wondering is - once this is done, does outlook asign some kind of key/number to the calendar item? if so, how do i get it from within foxpro?
>
>i often need to change the calendar item afterwards and end up putting a lot of items in the subject field of the calendar so that i can search for it later. otherwise, i would have similar calendar items being found.
>
>i've posted a portion of my code below. it has some variables that are not explained but still will hopefully give some idea of what i've been doing. Thanks.
>
>Paul
>
>oOutlookObj = CREATEOBJECT("Outlook.Application")
>oNamespace = oOutlookObj.GetNamespace("MAPI")
>fldFAE_old = oNamespace.folders("Personal Folders").folders("Calendar").folders("jon")
>
>oappt_delete = fldFAE_old.Items.Find("[subject] = " + Chr(34) ; + alltrim(t_outlook_temp_fae.c_body_old) + Chr(34))
>
>do while not isnull (oappt_delete)
>oappt_delete.delete()
>oappt_delete = fldFAE_old.Items.Find("[subject] = " + Chr(34) + alltrim(c_body_old) + ; Chr(34))
>enddo
>
>objappt = fldFAE_new.items.add
>objappt.subject = alltrim(t_outlook_temp_fae.c_body_new)
>objappt.location = alltrim(cursor_loc_temp.location)
>objappt.start = t_outlook_temp_fae.dt_start
>objappt.body = alltrim(t_outlook_temp_fae.c_body_new)
>objappt.save() &&saves appointment

Outlook assigns uniue id. Check EntryID.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform