Solved

olOutlook "BusyStatus"

Posted on 2002-07-20
3
242 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 Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Learn more about how the humble email signature can be used as more than just an electronic business card. When used correctly, a signature can easily be tailored for different purposes by different departments within an organization.
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

708 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now