Ruby equivalent to VB Syntax

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
--
Posted via http://www.ruby-forum.com/.

Jeff Miller wrote:

Any suggestions? All help is appreciated!

Thanks!
- Jeff Miller

That might help.

- -- Phillip Gawlowski

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...

···

--
Posted via http://www.ruby-forum.com/.

nevermind, I got it working :slight_smile:

···

--
Posted via http://www.ruby-forum.com/.