adding multiple .SendTos

This is a discussion on adding multiple .SendTos within the lotus-notes-misc forums in Other Technologies category; Hi, I have a form which, on Querysave, is emailed out based on certain conditions, e.g: If champion_name_1 > Then memo.SendTo = champion_name_1 End If If champion_name_2 > Then memo.SendTo = champion_name_2 End If If champion_name_3 > Then memo.SendTo = champion_name_3 End If If champion_name_4 > Then memo.SendTo = champion_name_4 End If If champion_name_5 > Then memo.SendTo = champion_name_5 End If Currently as written each of these statements overwrites the last ..SendTo recipient. I would /like/ this to instead append to a list of recips. Does anyone know what I need to change? Thanks in advance, Jeff...

Go Back   Database Forum > Other Technologies > lotus-notes-misc

Database Forums

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-26-2005, 09:34 PM
Default adding multiple .SendTos

Hi,

I have a form which, on Querysave, is emailed out based on certain
conditions, e.g:

If champion_name_1 > "" Then
memo.SendTo = champion_name_1
End If
If champion_name_2 > "" Then
memo.SendTo = champion_name_2
End If
If champion_name_3 > "" Then
memo.SendTo = champion_name_3
End If
If champion_name_4 > "" Then
memo.SendTo = champion_name_4
End If
If champion_name_5 > "" Then
memo.SendTo = champion_name_5
End If

Currently as written each of these statements overwrites the last
..SendTo recipient. I would /like/ this to instead append to a list of
recips.

Does anyone know what I need to change?

Thanks in advance,
Jeff

Reply With Quote
  #2  
Old 07-27-2005, 01:01 AM
Default Re: adding multiple .SendTos

Store the values in an array, then assign the array to memo.SendTo

Something like:

Dim SendToArray( 1 to 5 ) as string
SendToArray( 1 ) = champion_name_1
SendToArray( 2 ) = champion_name_2
SendToArray( 3 ) = champion_name_3
SendToArray( 4 ) = champion_name_4
SendToArray( 5 ) = champion_name_5
memo.SendTo = FullTrim( SendToArray ) ' FullTrim removes the empties

Tim Mohrlant - tmohrlant-at-NO_JUNK_MAIL_comcast.net (remove NO_JUNK_MAIL_)


wrote in message
news:1122424473.387982.160620-at-g43g2000cwa.googlegr oups.com...
> Hi,
>
> I have a form which, on Querysave, is emailed out based on certain
> conditions, e.g:
>
> If champion_name_1 > "" Then
> memo.SendTo = champion_name_1
> End If
> If champion_name_2 > "" Then
> memo.SendTo = champion_name_2
> End If
> If champion_name_3 > "" Then
> memo.SendTo = champion_name_3
> End If
> If champion_name_4 > "" Then
> memo.SendTo = champion_name_4
> End If
> If champion_name_5 > "" Then
> memo.SendTo = champion_name_5
> End If
>
> Currently as written each of these statements overwrites the last
> .SendTo recipient. I would /like/ this to instead append to a list of
> recips.
>
> Does anyone know what I need to change?
>
> Thanks in advance,
> Jeff
>



Reply With Quote
Reply


Thread Tools
Display Modes



All times are GMT -4. The time now is 08:33 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Integrated by bbpixel2009 :: jvbPlugin R1013.368.1

Search Engine Friendly URLs by vBSEO 3.1.0
vB Ad Management by =RedTyger=
In an effort to better serve ads to our visitors, cookies are used on Mydatabasesupport.com. For more information, check out our Privacy Policy.