StringArray from array of CStrings?

I’m trying to populate a ComboBox from an array of const CStrings, i.e.:

const char gm_prog_names[136][24] = {    
"1 Piano 1",
"2 Piano 2",
"3 Piano 3",
"4 HonkeyTonk",
[...] };

(I realize there are likely better ways to store this data, but I’ve got some old code I’m porting here.)

I can do this when creating a ComboBox:

    StringArray menuList = std::initializer_list< const char * >{"1", "2", "3", "4", "5", "6", "7", "8"};
    programCB.addItemList (menuList, 1);

…but I can’t figure out the correct syntax to assign it from the stored CString array.

If you can change the array of c strings:

const StringArray gm_prog_names
{
    "1 Piano 1",
    "2 Piano 2",
    "3 Piano 3",
    "4 HonkeyTonk"
};

and if you can’t
StringArray menuList = { gm_prog_names[0], gm_prog_names [1], gm_prog_names [2], etc };

Thanks! I didn’t know that I could change the array type to StringArray and the rest of the initialization would still work, but I guess it’s kind of obvious. :roll_eyes: