Page 1 of 1

selecting the entered string variables

Posted: February 2nd, 2019, 1:12 pm
by kamal
Hi,
I have names entered in a single section (not multiple) with variable names as B1,B2,B3,B4 (all are string variables with uniform length say 50).
I need to list the entered variables b1 to b4 in say variable B5 to select one of them....

Re: selecting the entered string variables

Posted: February 4th, 2019, 7:43 am
by Gregory Martin
Have you looked at examples of dynamic value sets, either in the helps or on this forum? Your task is pretty straightforward, something like:
vsCodes(1) = 1;
vsLabels(1) = B1;
// ...
vsCodes(4) = 4;
vsLabels(4) = B4;

// end the value set
vsCodes(5) = notappl;

setvalueset(FIELD_NAME, vsCodes, vsLabels);

Re: selecting the entered string variables

Posted: February 5th, 2019, 6:43 am
by kamal
Hi,
query remains unresolved.... The variables are single variables (not from roster).....

Re: selecting the entered string variables

Posted: February 5th, 2019, 6:52 am
by Gregory Martin
Can you post your application where you tried something like I suggested. My suggestion is for single variables. I'll take a look at why it isn't working for you.