Option Menu

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
maxs
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 402
Joined: Sat Jun 24, 2006 12:02 am
Contact:

Option Menu

Post by maxs » Thu Mar 09, 2017 7:05 am

Is it possible to get the line number of a selection in an optionmenu?

hpsh
Posts: 43
Joined: Tue Aug 25, 2015 8:06 pm

Re: Option Menu

Post by hpsh » Thu Mar 09, 2017 8:58 am

you mean something like this? (just replace the standard code in option menu)

Code: Select all

on mouseUp
   put word 2 of the selectedline of me into field "f1"
end mouseUp

Klaus
Posts: 11222
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Option Menu

Post by Klaus » Thu Mar 09, 2017 11:45 am

Hi Max,

"the menuhistory" should give you what you need.


best

Klaus

maxs
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 402
Joined: Sat Jun 24, 2006 12:02 am
Contact:

Re: Option Menu

Post by maxs » Fri Mar 10, 2017 2:44 am

Yes, thank you KPSH,

I did have that line , but I forgot to add the words: "of me"

hpsh
Posts: 43
Joined: Tue Aug 25, 2015 8:06 pm

Re: Option Menu

Post by hpsh » Fri Mar 10, 2017 11:30 am

well, easy to miss.

and really hate that Klaus always finds a better way to do stuff :lol:

Klaus
Posts: 11222
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Option Menu

Post by Klaus » Fri Mar 10, 2017 2:42 pm

Hi hpsh,

so sorry, NOT! :D


Best

Klaus

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6186
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Option Menu

Post by dunbarx » Fri Mar 10, 2017 2:53 pm

MUCH worse than the fact that Klaus' posts are usually spot-on, is that he gets here before everyone else.

Craig

Klaus
Posts: 11222
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Option Menu

Post by Klaus » Fri Mar 10, 2017 3:13 pm

dunbarx wrote:MUCH worse than the fact that Klaus' posts are usually spot-on, is that he gets here before everyone else.
Well, one of the very few advantages (if not the only one) of being unemployed since a long time... :?

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6186
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Option Menu

Post by dunbarx » Fri Mar 10, 2017 4:56 pm

Hmmm.

I think it is living closer to the sun, each and every day.

Craig

Klaus
Posts: 11222
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Option Menu

Post by Klaus » Sat Mar 11, 2017 1:13 pm

Nice try, Craig! 8)

maxs
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 402
Joined: Sat Jun 24, 2006 12:02 am
Contact:

Re: Option Menu

Post by maxs » Mon Mar 13, 2017 7:20 am

THanks, Craig and Klaus.

I'm always surprised when people I don't know want to help. I'm from Detroit.

Max

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”