CAPI TEXT FOR MULTIPLE RESPONSES

Discussions about creating CAPI applications to run on Android devices
Yass
Posts: 6
Joined: November 11th, 2017, 1:26 am

CAPI TEXT FOR MULTIPLE RESPONSES

Postby Yass » November 29th, 2017, 8:23 am

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: 274
Joined: July 9th, 2012, 11:32 am
Location: Islamabad, Pakistan
Contact:

Re: CAPI TEXT FOR MULTIPLE RESPONSES

Postby khurshid.arshad » November 29th, 2017, 11:43 am

Dear Yass;

It is working fine. See attached file
Best.
a.
Attachments
Test.rar
(5.61 KiB) Downloaded 21 times

Yass
Posts: 6
Joined: November 11th, 2017, 1:26 am

Re: CAPI TEXT FOR MULTIPLE RESPONSES

Postby Yass » November 29th, 2017, 12:11 pm

Dear khurshid,

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


Return to “Android”