?
Solved

olOutlook "BusyStatus"

Posted on 2002-07-20
3
Medium Priority
?
258 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 23

Accepted Solution

by:
slink9 earned 200 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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
In this article I discuss my selections of the Top Four free Outlook OST File Viewers available. Open, view and read even damaged OST files by using these tools. They all provide a clear preview of all data such as emails, notes, tasks, calendars, e…
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…
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…
Suggested Courses

762 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