A simple check of the unread flag and attachment flag?

D

Dennis Brown

Hi,
If I want to check (with the Outlook object model) if a message's unread property is set, what would be the syntax when checking from the Message list?
Can I also see if there are any attachments from that position as well, as the user arrows down the list?
The adaptive screen reading software tries to read the "Read"/"Unread" status in icon graphic in the Message list, as well as the "Attachment" graphic, but it is difficult to let the blind user know there is an attachment, or that the message has been read, by trying to read a picture! I'd like to try this with the object model.
Thanks for any help!
 
M

Michael Bauer

Am Fri, 19 Aug 2005 11:09:38 -0400 schrieb Dennis Brown:

Hi Dennis,

sample:

Dim obj as Object
Set obj=Application.ActiveExplorer.Selection(1)
With obj
Select Case .Unread
Case False
MsgBox "The item has been read already"
Case Else
MsgBox "The item is unread"
End Select

MsgBox "The item has " & .Attachments.Count & " attachments"
End With

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Hi,
If I want to check (with the Outlook object model) if a message's
unread property is set, what would be the syntax when checking from the
Message list?
Can I also see if there are any attachments from that position as
well, as the user arrows down the list?
The adaptive screen reading software tries to read the "Read"/"Unread"
status in icon graphic in the Message list, as well as the "Attachment"
graphic, but it is difficult to let the blind user know there is an
attachment, or that the message has been read, by trying to read a
picture! I'd like to try this with the object model.
 
D

Dennis Brown

Great! Thanks a bunch!

--

Thanks,
Dennis
Am Fri, 19 Aug 2005 11:09:38 -0400 schrieb Dennis Brown:

Hi Dennis,

sample:

Dim obj as Object
Set obj=Application.ActiveExplorer.Selection(1)
With obj
Select Case .Unread
Case False
MsgBox "The item has been read already"
Case Else
MsgBox "The item is unread"
End Select

MsgBox "The item has " & .Attachments.Count & " attachments"
End With

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Hi,
If I want to check (with the Outlook object model) if a message's
unread property is set, what would be the syntax when checking from the
Message list?
Can I also see if there are any attachments from that position as
well, as the user arrows down the list?
The adaptive screen reading software tries to read the "Read"/"Unread"
status in icon graphic in the Message list, as well as the "Attachment"
graphic, but it is difficult to let the blind user know there is an
attachment, or that the message has been read, by trying to read a
picture! I'd like to try this with the object model.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top