Real Software Forums
http://forums.realsoftware.com/

combo box - refreshing contents of list
http://forums.realsoftware.com/viewtopic.php?f=10&t=48011
Page 1 of 1

Author:  plunkettphoto [ Wed May 29, 2013 1:15 pm ]
Post subject:  combo box - refreshing contents of list

I have a combo box that has a set of predefined categories that are populated in the open event of the form. I then do a SELECT DISTINCT from a table and add any additional categories that are found in the table.

Now the question. If the user adds a new category (not in the predefined or DISTINCT groups), that new entry does not show when another record is updated. How do I tell if the entry is an addition that was not already in the list versus a selection of one of the existing categories.

Surely I don't have to rebuild the list after each change?

thanks, and looking forward to Xojo...

b

Author:  DaveS [ Wed May 29, 2013 1:41 pm ]
Post subject:  Re: combo box - refreshing contents of list

you don't HAVE to... but you might find it is quicker to just repopulate the list, than going thru the hassle of figuring out what is there and what is not.

Author:  plunkettphoto [ Wed May 29, 2013 4:53 pm ]
Post subject:  Re: combo box - refreshing contents of list

Thanks Dave,

That is pretty much what I had decided....

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/