Retrieving Norgate industry index symbol from an industry name

Suppose I use IndustryID(1) to get my current symbol’s industry name, and then create a new string variable (e.g. equaling “S&P 500 Media Ind”) having the exact industry name for the Norgate Premium index I want to use in a Foreign() call. What is the best way to use that industry name to retrieve the related symbol (e.g. “$SPXMDIA”). Thank you very much.

Thank you, I found the answer myself: Norgate has a text file with index symbols and associated industry names. I will simply open it, loop to find the matching industry, strip out the symbol and close the file. Should be easy peasy.