selecting the entered string variables

Discussions about editing and cleaning data
kamal
Posts: 5
Joined: February 2nd, 2019, 1:08 pm

selecting the entered string variables

Postby kamal » February 2nd, 2019, 1:12 pm

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....

Gregory Martin
Posts: 1162
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: selecting the entered string variables

Postby Gregory Martin » February 4th, 2019, 7:43 am

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);

kamal
Posts: 5
Joined: February 2nd, 2019, 1:08 pm

Re: selecting the entered string variables

Postby kamal » February 5th, 2019, 6:43 am

Hi,
query remains unresolved.... The variables are single variables (not from roster).....

Gregory Martin
Posts: 1162
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: selecting the entered string variables

Postby Gregory Martin » February 5th, 2019, 6:52 am

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.


Return to “Editing”