Solved

olOutlook "BusyStatus"

Posted on 2002-07-20
3
247 Views
Last Modified: 2010-04-08
I'm sending an appointment to Outlook from Visual Foxpro and I'm having a problem sending the 'BusyStatus' command.
(it really doesn't matter that this is Foxpro, its an Outlook Property.  .BusyStatus is the property that indicates "Show time as: Tentative". etc

The basic code is:

   #define olAppointmentItem 1
     loOutlook=createobject("outlook.application")
     loAppointmentItem=loOutlook.createitem(olAppointmentItem)

     with loAppointmentItem
        .start       = STARTDATETIME
        .end          = ENDDATETIME
        .AllDayEvent  = .T.
        .subject      = "Test Subject"
        .body         = "Test Body"
*        .BusyStatus   = ".olFree"     && Doesn't work
*        .BusyStatus.olTentative            && Doesn't work
         If m.DisplayMsg = .T.
            .Display
         Else
            .Save
         Endif
      endwith

My problem is that I can't get the .BusyStatus to work and I'm wondering what the correct usage is.  Subject is defined as a Read/write String so its a string enclosed in quotes.  .BusyStatus is defined as Read/write Long
0
Comment
Question by:HDWILKINS
  • 2
3 Comments
 
LVL 23

Accepted Solution

by:
slink9 earned 50 total points
ID: 7167604
0
 
LVL 10

Author Comment

by:HDWILKINS
ID: 7167999
0
 
LVL 10

Author Comment

by:HDWILKINS
ID: 7170251
Thanks  .busyStatus=3 works

0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Outlook Free & Paid Tools
Many people use more than one email account and so it becomes difficult for them to manage them when they use separate accounts,  so, in this article, I have shared an easy way to add Other Mail Accounts in your Google Inbox. It helps to combine all…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question