Restored from previous forum. Originally posted by Fangbeast.
Originally posted by tranquil
Thats the way I suggested but's a lot of work.

But seems that this is the only way so I need to use this one.
Thanks to all for their answers and help!
Mike
Tranquilizer/ Secretly!
http://www.secretly.de
Registred PureBasic User
System: Windows 2000 Server, 512 MB Ram, GeForce4200 TI 128 MB DDR, Hercules Theater 6.1 DTS Sound
Mike, my example will still work and doesn't need unique ID's. As you might know, an element in a linked list only takes as much memory as the data in it. So what I would do is.....
Add a new item to the workplace and home structures called placeID and generate a crc from the person's full name and something else when the record is filled. Do not bother to display the placeid, you can search on it or the person's name for records.
procedure:
1. Add a new element, populate all the fields, including the workplace.
2. A part of your form, the sub form where you enter work details, will ask you if you have finished entering workplaces. Each time you add a new workplace, a whole new record is generated. Remember, this doesn't matter as it will only take as much memory for the element as there is data in it (unlike arrays). Linked lists are memory efficient.
3. When you search for a person, display only those records that match the person. When you search for workplaces for a person, search the person or unique placeID for whom the workplaces exist but display only the workplaces for that person, just hide the data you don't want to display. Simple.
All the data is still in one linked list!!!
Fangles woz ear orright den?