Ruby equivalent to VB Syntax...

J

Jeff Miller

Hello,
I am doing some CDO stuff with Ruby, but all the tutorials are in VB
(lame!!) so I was wondering if anybody knew how to do something like
this:

VB:
---
' Create/write a Microsoft Outlook item custom field
objMessage.Fields.Add "<PropertyTag>", <PropertyType>,
"<YourFieldValue>", CdoPropSetID5

' For Example:
objMessage.Fields.Add "PersonRole", vbString, "HR Lead",
"2903020000000000C000000000000046"

I've tried a few different ways, but nothing seems to work (I'm new to
OOP...). I want to do something like:

Ruby:
-----
contact = contact_folder.Messages.Add
contact.Fields.FullName = "Test"

...or something


Any suggestions? All help is appreciated!

Thanks!
- Jeff Miller
 
P

Phillip Gawlowski

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jeff Miller wrote:
| Any suggestions? All help is appreciated!
|
| Thanks!
| - Jeff Miller

http://rubyonwindows.blogspot.com/search/label/outlook

That might help.

- -- Phillip Gawlowski
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfyp7cACgkQbtAgaoJTgL+i3QCeNpdJs1wc1+F2sGeW7KqFncr3
bzAAoJBFGF8Z8NwiMlNJCNC3XroMnsbZ
=CrL+
-----END PGP SIGNATURE-----
 
J

Jeff Miller

Thanks for the link, but I am using CDO to enter Exchange directly
instead of using Outlook's MAPI. The contact creation methods are
different...
 

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

Members online

No members online now.

Forum statistics

Threads
474,289
Messages
2,571,435
Members
48,121
Latest member
ColinHibne

Latest Threads

Top