I have a number of 'records' consisting of 4 'fields' in memory.
I would like to use the commands 'array sort', 'array scan',
'array insert' and 'array delete'. Question is: is this possible and
what data structure should I use. I could use a UDT-array or 4 separate
arrays (one for every field).
'Array sort' only works on 1 array and 1 tagarray..which leaves 2 arrays
unsorted.
Sorting a udt-array (of 4 fields) seems to work, but scan, delete and
insert didn't work in my small test.
I see 2 ways open:
- eiter write my own sort and insert routines (on arrays or udt's),
- or use a main array on which i use the array sort, together with
a tagarray of pointers that points to a udt-array with the 3
remaining fields (or pointers to 3 separate arrays).
Anybody any suggestion?
Kind regards
Eddy
------------------
I would like to use the commands 'array sort', 'array scan',
'array insert' and 'array delete'. Question is: is this possible and
what data structure should I use. I could use a UDT-array or 4 separate
arrays (one for every field).
'Array sort' only works on 1 array and 1 tagarray..which leaves 2 arrays
unsorted.
Sorting a udt-array (of 4 fields) seems to work, but scan, delete and
insert didn't work in my small test.
I see 2 ways open:
- eiter write my own sort and insert routines (on arrays or udt's),
- or use a main array on which i use the array sort, together with
a tagarray of pointers that points to a udt-array with the 3
remaining fields (or pointers to 3 separate arrays).
Anybody any suggestion?
Kind regards
Eddy
------------------
Comment