[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

olOutlook "BusyStatus"

Posted on 2002-07-20
3
Medium Priority
?
265 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Large Outlook files lead to various unwanted errors and corruption issues. Furthermore, large outlook files can also make Outlook take longer to start-up, search, navigate, and shut-down. So, In this article, i will discuss a method to make your Out…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

650 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