Access the valueset labels as an array

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
AriSilva
Posts: 591
Joined: July 22nd, 2016, 3:55 pm

Access the valueset labels as an array

Post by AriSilva »

Hi folks,
Is there a way to get the text of a specific value in the value set of a variable?
For example, if the variable has 7 entries in the valueset, I want to get the label of the (i)th entry.
Or I want to get the label of the label which is attached with the code 3.
Best
Ari
Best
Ari
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Access the valueset labels as an array

Post by josh »

You can use the getlabel() function.
AriSilva
Posts: 591
Joined: July 22nd, 2016, 3:55 pm

Re: Access the valueset labels as an array

Post by AriSilva »

Thanks, my mistake, I thought that getlabel was used only to get the variable label.
Best
Ari
Best
Ari
Post Reply