View Single Post
  #4  
Old September 19th 06, 04:42 PM posted to microsoft.public.outlook.program_forms
T-rev
external usenet poster
 
Posts: 23
Default Mail form VB code.

thanks - userProperties now contain items which I have added from the folder
list, - the values of which seem to be got correctly from the mapiObject.

thanks for your help.

For some reason I was having problems with numbers referencing ULONGs
instead of integers but this has now resolved itself.

"Sue Mosher [MVP-Outlook]" wrote in message
...
Look on your form's All Fields page. Do your custom properties appear in the
User-defined Fields in This Item list? If so, then you should be able to
access them through the UserProperties syntax. If that is not working for
you, show a code snippet.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"T-rev" wrote in message
...
Have you a VB snippet I could use please.
Problem is I have a published form to a folder. I can add to the
messageBody, or display buttons based on messageProperties. But I need to
get access to mapi custom properties which I have placed on the message.

The don't seem to be in userProperties or itemProperties, I know they are
on
the mapi object as I placed them there and can see them on using
outlookSpy.

In the form designed is there any way of using
If Item.MapiObject ("ExampleProperty") = TRUE Then
strBody = strBody & "Property Present"
End If

Item.Body = strBody

Thanks for your help.




Ads