Jan 30, 2013; 16:17
Patrick Larkin
Array assistance
Hello -
Lasso 8.6 question.
I've used arrays to store a set of email addresses and then use that array to send out a mailing.
I'd like to also store the person's name in that array so after the email is sent, I can output a list of names along with their email addresses for the sender.
Right now, I do something like
--------
var:'email_addresses' = (Array);
inline(
-database='myEmail',
-table='info',
-ReturnField='email_address',
-findall)
$email_addresses->(Insert:(field:'email_address'));
/inline;
-------
Then I can use $email_address to create a recipient list and finally to print a list to screen of the addresses for the sender.
The person who uses this requested that I include the first and last name of the recipient along with the email addresses.
I'm looking at the chapter in the manual on Arrays and am not sure where to go. A map? I see reference to paired values. That's what I need I think. But to send the email, I need just the email address but to print out the report, I need names and email. I'm not sure how to manipulate the array in the most efficient manner.
I wrote this a long time ago and I don't use arrays often.
Patrick Larkin
Developer/Administrator of Special Systems / Webmaster
Bethlehem Area School District
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Jan 30, 2013; 13:33
Steve Piercy - Web Site Builder
Re: Array assistance