Is there any way in Xojo to duplicate or simulate the way a checkbox is created based on a value list in Filemaker? I basically need to create a list that the user might edit from time to time and I want a checkbox that can list all the values that is in the list when the window opens.
[quote=258662:@Dave S]
a “checkbox” is a boolean control… it is checked or its not checked.[/quote]
If you don’t know FIleMaker you won’t know what he’s talking about. It looks like this:
The checkbox names are taken from a Value list (which in filemaker is basically a computed array of values).
For each item the user clicks, the checkbox adds that value string to a EndOfLine-delmited list.
I’ve worked out a way of doing this that works pretty well using a control set including loading the list from a table. I’m going to see if xDev Magazine would be interested in an article on it. If not I can post the app here.
This would be fairly easy to do with containers too. Have an overall container for the group and then create Add methods to dynamically add Checkbox containers. The only advantage to doing it this way is that you could do the same technique on both desktop and web.
FWIW, I tend to avoid control sets. I’ve found they are useful in certain rare situations but for the most part cause more trouble than they’re worth.