PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.ruby > Ruby equivalent to VB Syntax...
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Ruby equivalent to VB Syntax...

Réponse
 
LinkBack Outils de la discussion
Vieux 01/04/2008, 22h10   #1
Jeff Miller
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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 is appreciated!

Thanks!
- Jeff Miller
--
Posted via http://www.ruby-forum.com/.

  Réponse avec citation
Vieux 01/04/2008, 22h23   #2
Phillip Gawlowski
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Ruby equivalent to VB Syntax...

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

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

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

That might .

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

  Réponse avec citation
Vieux 01/04/2008, 22h34   #3
Jeff Miller
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Ruby equivalent to VB Syntax...

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

  Réponse avec citation
Vieux 02/04/2008, 02h13   #4
Jeff Miller
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Ruby equivalent to VB Syntax...

nevermind, I got it working
--
Posted via http://www.ruby-forum.com/.

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 07h51.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08180 seconds with 12 queries