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
 

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

Similar Threads

if statement 3
pulling SQL records 1
format 4
Windows 10 Error: 'CreateProcessWithTokenW' was not declared in this scope 2
format 1
Appending The Subject Line In A Forwarded Message, Office 2007 0
delete query with custom form 1
variable 5

Back
Top