SOLVED - Displaying the fields from the DB

Creating desktop or client-server database solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

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

Re: Problems with 1 combobox - reading from database

Post by admin12 » Thu Jul 28, 2011 2:29 am

Fixed it. I must have had an erroneous character or something. I renamed the field to cmbGender and changed in the appropriate places and viola - now it works.

Go figure.

Mike

dglass
Posts: 519
Joined: Thu Sep 24, 2009 9:10 pm
Contact:

Re: Problems with 1 combobox - reading from database

Post by dglass » Thu Jul 28, 2011 6:00 am

admin12 wrote: I am confused since the combobox is not a button
Yes, the combobox is a button.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: SOLVED - Displaying the fields from the DB

Post by Mark » Tue Aug 09, 2011 3:04 pm

Hi Mike,

A combobox is no field but a button. The following will work:

Code: Select all

     put lineoffset(item 4 of myLine,btn "fldGender") into myLineNr
     set the menuhistory of btn "fldGender" to myLineNr
Have you noticed that your script will put the last line of theData into the fields and button(s)? What exactly do you want to achieve with the repeat loop?

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply