valueset with a seek method
Posted: November 10th, 2021, 9:14 am
Hi folks,
I´m building a valueset on the fly, depending on a large list of elements. The real example is I have a list of sector tracks, and each sector belongs to a certain STRATA. I want to build the valueset of all the stratas of a certain area, but as they appear several times in the list, I have to check if the strata is already in the valueset before adding it. And this is not possible since it does not have the seek method as the "regular" lists.
So, to circumvent the problem I have to create a temporary list with the possible values, and then, at the end, copy them to the final valueset.
Is there another solution for this tiny problem?
Best
Ari
I´m building a valueset on the fly, depending on a large list of elements. The real example is I have a list of sector tracks, and each sector belongs to a certain STRATA. I want to build the valueset of all the stratas of a certain area, but as they appear several times in the list, I have to check if the strata is already in the valueset before adding it. And this is not possible since it does not have the seek method as the "regular" lists.
So, to circumvent the problem I have to create a temporary list with the possible values, and then, at the end, copy them to the final valueset.
Is there another solution for this tiny problem?
Best
Ari