Extracting contents from NamedValueSet type


#1

Hi,

I have predefined string as

const static String SDCE= T(“abc”);

NamedValueSet rw;

Now i want to extract value of SDCE which is present in rw with Ignoring case Sensitivity, i.e If i give ABC as input then it must be able to extract respective value of abc from rw .


#2

(Please do not use the T macro any more!! http://www.rawmaterialsoftware.com/viewtopic.php?f=12&t=8642&p=48805)

The NamedValueSet is case-sensitive, for performance reasons. If you’ve got mixed-case values, why not convert them all to lower-case before using them to add or access the set?