CAPI TEXT FOR MULTIPLE RESPONSES

Discussions about creating CAPI applications to run on Android devices
Forum rules
New release: CSPro 8.0
Post Reply
Yass
Posts: 103
Joined: November 11th, 2017, 1:26 am

CAPI TEXT FOR MULTIPLE RESPONSES

Post by Yass »

Dear Forum

I have this issue, i will like to list responses selected in a multiple response question to my CAPI text,
I tried the following and it not wrong. Please help.

Proc f15
preproc
drinksSelected="";
if pos ("A",f14) then drinksSelected = drinksSelected + " Fanta"; endif;
if pos ("B",f14) then drinksSelected = drinksSelected + " /Coca Cola"; endif;
if pos ("C",f14) then drinksSelected = drinksSelected + " /Spirite"; endif;
if pos ("F",f14) then drinksSelected = drinksSelected + " / Pepsi"; endif;

IN MY CAPI TEXT I HAVE :

How much did it cost you in buying : %drinksSelected% ?

It does not work... am I in the right path?
khurshid.arshad
Posts: 571
Joined: July 9th, 2012, 11:32 am
Location: Islamabad, Pakistan

Re: CAPI TEXT FOR MULTIPLE RESPONSES

Post by khurshid.arshad »

Dear Yass;

It is working fine. See attached file
Best.
a.
Attachments
Test.rar
(5.61 KiB) Downloaded 344 times
Yass
Posts: 103
Joined: November 11th, 2017, 1:26 am

Re: CAPI TEXT FOR MULTIPLE RESPONSES

Post by Yass »

Dear khurshid,

Thanks , my declaration was in private , after sending it to global , it works!!! Thanks
Post Reply