selecting the entered string variables

Discussions about editing and cleaning data
Forum rules
New release: CSPro 8.0
Post Reply
kamal
Posts: 5
Joined: February 2nd, 2019, 1:08 pm

selecting the entered string variables

Post 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....
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: selecting the entered string variables

Post 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);
kamal
Posts: 5
Joined: February 2nd, 2019, 1:08 pm

Re: selecting the entered string variables

Post by kamal »

Hi,
query remains unresolved.... The variables are single variables (not from roster).....
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: selecting the entered string variables

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