Using getlabel() in Question Text

Discussions about creating CAPI applications to run on Android devices
Forum rules
New release: CSPro 8.0
Post Reply
Hong
Posts: 5
Joined: September 27th, 2018, 12:55 pm

Using getlabel() in Question Text

Post by Hong »

Dear All,
Can I use getlabel() function in Question Text? I wrote %getlabel(PROVINCE,PROVINCE)% but it did not work. How should I code when I want to use getlabel()in a Question Text?
Thank you.
Hong
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Using getlabel() in Question Text

Post by josh »

getlabel() does not work in question text. Instead, you can copy the result of the call to getlabel into a string variable and use that variable in the question text or you can call a user defined function in the question text and have that function call getlabel().

http://www.csprousers.org/help/CSPro/cr ... tions.html
Hong
Posts: 5
Joined: September 27th, 2018, 12:55 pm

Re: Using getlabel() in Question Text

Post by Hong »

Thank you very much, Josh
Post Reply