在选项按钮中排序文本

Sort text in Option Button

我有一个带有一些值的选项按钮

Scotland
Switzerland
England

我想按字母顺序对这些行进行排序。 我该怎么做?

sort the text of button btn_type ascending(each)

或它的某些变体不起作用。

先获取按钮的文字,然后排序,再设置按钮的文字:

put the text of btn "Your option button" into myText
sort lines of myText
set the text of btn "Your option button" to myText

或许你也可以直接做:

sort lines of btn "Your option button"

默认情况下排序功能是升序的,所以你不需要包括它。

丢字"the":

sort lines of btn "Your option button"

而且您甚至不需要 "lines",因为这是假定的,除非明确修改为项目。

sort btn "Your option button"