Question about combo boxes

Sarah Reichelt sarah.reichelt at gmail.com
Sun Nov 1 20:37:16 EST 2009


On Mon, Nov 2, 2009 at 9:09 AM, David Coker <davidocoker at gmail.com> wrote:
> Nicolas Cueto wrote:
>>
>> I think what you want is:
>>
>>  put the label of button "[button name]"
>>
>> This'll give you the actual words of the currently selected item.
>>
>> Another way is:
>>
>>  put the menuhistory of button "[button name]"
>>
>> This'll give you the line number of the currently selected item.
>
> Thank you Nicolas,
> ...I actually tried using the label property previously without any luck, so
> I'm guessing I must have had something else wrong in the script. Everything
> works like it should now.


You could also try getting "the selectedText". I always forget which
is best as I don't think that all the menu-type buttons set the label
when a different option is chosen.

Cheers,
Sarah



More information about the use-livecode mailing list