Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Groupwise Code Question

Status
Not open for further replies.

avagodro

Technical User
Aug 12, 2005
83
US
I am using the basGWDemo code that Dimitri Furman produced. It is a great module, but I have encountered a snare, and haven't been able to find anything in the code, and can't find any posts.
In the code, it is only accepting a single addresss for To, CC, and BCC. I want to be able to send a BCC to 2 or more people.
In Groupwise when you add a second person, you use a semi-colon (;), this it is invalid in the code.

Does anyone know how to resolve this?
 
before using other people's code, you should try to understand it.

I suspect it's just a input parameter check or something like that. A quick run through of the code should find the problem...

--------------------
Procrastinate Now!
 
I spent several hours before I even started working with it to understand what did what.
I am just not reading something right in the code.
 
I actually got a clarification from Dimitri on it and I'm posting it here for others that may encounter the same issue.


You have to pass an array to the RecCC property instead of a string.
First, you need to declare the array of the appropriate size:

Dim astrRecCC(1, 1) 'two recipients
Dim astrRecCC(1, 2) 'three recipients

then you assign values to the elements of the array:

astrRecCC(0, 0) = "foo1@foo.int"
astrRecCC(1, 0) = "Full Name 1" 'optional

astrRecCC(0, 1) = "foo2@foo.int"
astrRecCC(1, 1) = "Full Name 2" 'optional

then you pass the array to the RecCC property of the class:

.RecCC = astrRecCC

If you don't know the number of recipients in advance, you will have to
use a dynamic array. Look up the Redim statement in Help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top