I was wondering in CSPro code is it possible to get a reference to a valueset(s) object of a dictionary item. Say for example I have a dictionary item WCOL1, which has a value set WCOL1_VS1. In code I can get a reference to the value set object by declaring a variable of type ValueSet and just assigning it from WCOL1_VS1 like this:
Code: Select all
ValueSet myVs = WCOL1_VS1;
Code: Select all
ValueSet myVs;
numeric vsCount = WCOL1.GetValueSetCount(); //get count of value sets defined in WCOL1 dictionary item
if vsCount then
myVs = WCOL1.GetValueSet(1); //assigning the first valueset of WCOL to 'myVs'
endif;
Thanks!
Alex