Comparing Lists in Popup Menu's

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
rpanbwl
Posts: 5
Joined: Sun Oct 25, 2015 3:00 pm

Comparing Lists in Popup Menu's

Post by rpanbwl » Sun Oct 25, 2015 3:04 pm

I'm looking for a way to compare elements in popup menus is that possible?

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Comparing Lists in Popup Menu's

Post by Klaus » Sun Oct 25, 2015 3:09 pm

Hi rpanbwl,

1. welcome to the forum! :D

2. Sure this is possible, can you be a bit more specific?

Hint:
"Lists in popup menus" is just text that you can access (get and set) with:
the text of btn "your popup menu here"


Best

Klaus

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: Comparing Lists in Popup Menu's

Post by dunbarx » Sun Oct 25, 2015 4:11 pm

What Kaus said.

It is not obvious, but buttons are containers, just like fields or variables, and have a text property:

Code: Select all

put "ABC" & return & "XYZ" into button "yourButton"
If the button is one of the menu styles, like a "pullDown", then the menuItems will be the text of that button. After you know that, you can compare two buttons in any way you need to.

Craig Newman

rpanbwl
Posts: 5
Joined: Sun Oct 25, 2015 3:00 pm

Re: Comparing Lists in Popup Menu's

Post by rpanbwl » Mon Oct 26, 2015 7:22 pm

Thank you so much!!!

Post Reply