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

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 
Back
Top