Accessing returned values from @prompt with multiple return values

I have the following code in a button to be triggered via the Notes client. I am selecting 2 or more values from the dialog. However, at the end, the @prompt is only returning the first value in the list. My question is this, when using “multi” here, how can I access the entire returned list?

addrecip := @DbColumn(“”:“nocache”;@Subset(@DbName; 1):@Subset(@DbName; -1);“(profilelookup)”;2);

counter := @Elements(addrecip);

@Prompt([ok];@Text(counter);@Text(counter));

@If(counter < 2; “”;

addrecip := @Prompt([OkCancelListMult]; “Select a Name”; “Select one or more names as recipients.”; “”; @Explode(addrecip; @NewLine))

);

@Implode(addrecip);

@Prompt([ok];“”; addrecip);

Subject: Accessing returned values from @prompt with multiple return values

you need to put your @Explode and @Implode into a temp variable then display the result with your @Prompt.

Subject: RE: Accessing returned values from @prompt with multiple return values

Thanks, Paul. Got that working. Then I scrapped it due to further logic below that made me decide a LS action would be the better route to go for this. A hammer instead of a screwdriver requirement and all that.