SOLVED - Writing the selections of a list to the database

Creating desktop or client-server database solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
admin12
Posts: 412
Joined: Wed May 11, 2011 9:47 am

SOLVED - Writing the selections of a list to the database

Post by admin12 » Fri Jul 29, 2011 3:23 pm

I have checkboxes that open up lists of choices that can be multi-highlighted.

I need to create a string for each skill (many of them).

Here is what I have so far:

if the hilite of btn "ckArtsCrafts" then
put the hilite of btn "listAandC" into AandC
answer AandC
end if

I know it's not right. How would I write the line:

put the hilite of btn "listAandC" into AandC

to make it correct. Again, it is a multi-select list, so how would I write all the highlighted choices to one string?

Thank you.

Mike

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: SOLVED - Writing the selections of a list to the database

Post by jacque » Fri Jul 29, 2011 5:20 pm

Take a look in the dictionary at the hilitedButtonName and the hilitedButton. Those will give you the name or number of the radio button that has the current hilite. It only works if your radio buttons are grouped and have their readioBehavior set to true.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

admin12
Posts: 412
Joined: Wed May 11, 2011 9:47 am

Re: SOLVED - Writing the selections of a list to the database

Post by admin12 » Fri Jul 29, 2011 6:03 pm

jacque wrote:Take a look in the dictionary at the hilitedButtonName and the hilitedButton. Those will give you the name or number of the radio button that has the current hilite. It only works if your radio buttons are grouped and have their readioBehavior set to true.
Thank you. I had already solved it on my own, but your explanation should help others.

Mike

Post Reply