This topic is locked

Replace in string

4/25/2014 2:31:31 PM
ASPRunner.NET General questions
T
Tim author

Hello,
I have a form that is used to email. I have a field called "SendTo", which is a look up to a table with email addresses. In the properties of this look up field I have "Allow multiple selection" checked. When I run the form, if i select multiple email addresses it produces a comma separated list. I'd like to replace the comma with a semicolon and then use this field to populate the "string email =" field used by the Runner email function. Here is what I've tried on the "Before record added" event:
string email = values["SendTo"].Replace(",",";");
This doesn't seem to work. How should I do this?
(Let me know if you need more info).
Thanks,

Tim

T
Tim author 4/30/2014

So I don't really need this anymore, as i now realize that the Runner mail function works just fine with a comma separated list of email addresses for the "To" parameter. I had other issues. But I still wonder if I had the code correct for replacing a string. Oh well. I'm sure I'll have the chance to find out sometime soon.
Tim