How to add integer type user-defined column to inbox?

Z

Zoom

I want to create column of integer data type and add a value to it. if i use
string everything works fine but i got prob with sorting bcoz of the datatype.

I created a custom column by having prop value of my column view as
"http://schemas.microsoft.com/mapi/id/{00020328-0000-0000-C000-000000000046}/myfieldname"
Where myfieldname is the name of the column

and used
..appendChild(newChild:=objXMLDoc.createElement(tagName:="type")).Text = "i4"

for adding value to the column i used
Set prop = emailitem.UserProperties.Add("HowOld", olText, False, Nothing)

I even tried by using olNumber instead of olText. But no hope. I got the
column but with blank values
 
S

Sue Mosher [MVP-Outlook]

Maybe a dumb question, but what happens when you add that field to the view manually? Does it appear in the User-defined FIelds in Folder list on the folder's Field Chooser?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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