NULL

  • Thread starter Thread starter Joel Allen
  • Start date Start date
J

Joel Allen

Outlook 2003
SP3

Hello,

How do I make a property NULL. This isn't working:

item.userproperties("test") = NULL

Can someone help me with the syntax?

Thanks,
Joel
 
Do you mean you need to remove a user property? Why not call
UserProperty.Delete?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
 
Can I enter a value in the field later, or does it permanently delete the
field? Will it one off the form?

Thanks,
Joel
 
Yes, you can enter the value later.
Adding a user peoepry using UserProperties.Add does not one-off an item.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
 
Actually, using UserProperties.Add on a custom form item will indeed one-off
the item. Outlook has to store the field definition in the item, because
it's not in the form.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
 
Back
Top