I have a gv(list)
With option
test1var##Test 1, test2var##Test 2
It shows correctly in the dropdown for the Global (as seen in second screenshot)
But I can’t seem to figure out how to retrieve the variable after the ##
I have a gv(list)
With option
test1var##Test 1, test2var##Test 2
It shows correctly in the dropdown for the Global (as seen in second screenshot)
But I can’t seem to figure out how to retrieve the variable after the ##
Hi there,
As var as I know, the syntax it the list is:
value##label
We can get the value, but not the label.
You can try to put everything as label and use “split” to get your “value” and “label”. You can do something like:
test1var-Test 1, test2var-Test 2
value1: $tc(split, gv(test,0),"-",0)$
label1: $tc(split, gv(test,0),"-",1)$
value2: $tc(split, gv(test,1),"-",0)$
label2: $tc(split, gv(test,1),"-",1)$