Newbie Question

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: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
p4tr1ck
Posts: 36
Joined: Mon Jun 14, 2010 4:58 pm

Newbie Question

Post by p4tr1ck » Thu Jul 08, 2010 2:41 am

How do you get the value of which radio button is selected?
I have had to resort to global variables which I don't think is necessary.
Thanks.

doc
Posts: 148
Joined: Fri Jun 09, 2006 4:30 pm

Re: Newbie Question

Post by doc » Thu Jul 08, 2010 4:13 am

Typically radio buttons are grouped, so my code below assumes that..

Code: Select all

if the hilite of btn "MyRadioButton" of group "SomeName" is true then
  -- do something
  else
  -- do something different
 end if
Of course you might rather want to check to see if it is false, rather than true, but in either case what you are looking for is the "hilite" of the radio button being either true or false.

HTH,

-Doc-

p4tr1ck
Posts: 36
Joined: Mon Jun 14, 2010 4:58 pm

Re: Newbie Question

Post by p4tr1ck » Thu Jul 08, 2010 5:14 am

Thanks!
Would the same property apply to check boxes as well?
Also, what is the property for a window to stay on top? I can't find it in the dictionary.
Thanks again for your help.

Curry
Posts: 111
Joined: Mon Oct 15, 2007 11:34 pm
Contact:

Re: Newbie Question

Post by Curry » Thu Jul 08, 2010 7:03 am

hilitedButton
hilitedButtonName
Best wishes,

Curry Kenworthy

LiveCode Development, Training & Consulting
http://livecodeconsulting.com/

WordLib: Conquer MS Word & OpenOffice
SpreadLib: "Excel-lent" spreadsheet import/export
http://livecodeaddons.com/

Curry
Posts: 111
Joined: Mon Oct 15, 2007 11:34 pm
Contact:

Re: Newbie Question

Post by Curry » Thu Jul 08, 2010 7:06 am

palette
systemWindow
Best wishes,

Curry Kenworthy

LiveCode Development, Training & Consulting
http://livecodeconsulting.com/

WordLib: Conquer MS Word & OpenOffice
SpreadLib: "Excel-lent" spreadsheet import/export
http://livecodeaddons.com/

Post Reply