selnum

selnum <numerical variable>,<character string>,<character string>,c

Works somewhat like select and selgosub, except for the fact that depending on which character string is clicked, a number (starts at 0, then increments by one for each string) is loaded into the numerical variable instead of any kind of jump happening.