I have had a brief look through the forum but I am not sure what functions I need to use to achieve the following, although I am pretty sure it will be something to do with a list and perhaps Regex, although the latter may be overkill.
I have a sqlite database, and one of the fields in the database has a selection of keyword(s), separated by a commas. I want to read through the database and build a listbox of 'unique' keywords to then use as the basis of a search. More than one record for example will contain the same keywords so I don't want to duplicate these.
What function is best used to 'split' the keywords in a record field, so for example 'Apple, Banana, Coconut' becomes
Apple
Banana
Coconut
The next record may have
Apple, Egg Plant so my list would now look like;
Apple
Banana
Coconut
Egg Plant
etc. I will then sort the list alphabetically which is why Lists seems to be the best for this, and push it all into a list box so users can then select the appropriate row/keyword which will then be used in a query.
Apologies if this is a simple. Any pointers appreciated. Thanks for your help.
I have a sqlite database, and one of the fields in the database has a selection of keyword(s), separated by a commas. I want to read through the database and build a listbox of 'unique' keywords to then use as the basis of a search. More than one record for example will contain the same keywords so I don't want to duplicate these.
What function is best used to 'split' the keywords in a record field, so for example 'Apple, Banana, Coconut' becomes
Apple
Banana
Coconut
The next record may have
Apple, Egg Plant so my list would now look like;
Apple
Banana
Coconut
Egg Plant
etc. I will then sort the list alphabetically which is why Lists seems to be the best for this, and push it all into a list box so users can then select the appropriate row/keyword which will then be used in a query.
Apologies if this is a simple. Any pointers appreciated. Thanks for your help.