One option would be to "walk through" the list, doing a match() on each item looking for "[Cc]:". When a match is found, use the current index number in the list_select_item function:
list_select_item(listname, "#" & indexNbr);
Alternatively, I believe there may be a function in one of the support libraries that gives you the OS version, or you could create your own (as I did). You could use it along with a switch/case construct in order to do the appropriate statement at run time.
"Any sufficiently advanced bug is indistinguishable from a feature." -Bruce Brown
[i]...Sound trumpets! Every trumpet in the host! / Sixty thousand, on these words, sound, so high the mountains sound, and the valleys resound.</i] (The Song of Roland)