Restored from previous forum. Originally posted by Fangbeast.
I have structure here with 40 items in it. (all strings). I read a file off disk to add data to. When I add a new record, each item of data in the list is added to comboboxgadgets on the fly but of course, there is a lot of duplication.
I.e..if I have astructure item called parts, and a field called parts in the add record section, my program goes through all items of data in memory, extracts the item called parts and adds it as a choice to the comboboxgadget called parts so the user doesn't have to retype/remember everything.
Does anyone have any ideas about simple index creation at runtime to avoid combobox duplicates?? I want to turn all 40 items in my structure to comboboxgadget choices but there is a lot of duplication my way.
Fangles
Actually, forget I asked. I am working on another solution which is better and need help with it. An Auto-complete function. Start typing in a string gadget and PB will hunt through it's list and if it find's a match, it will replace it in the field.
Only problem is that the PB_EVENT_Change function only works once, not after you type any more characters. You have to delete what you already typed to get it to work again L:(
