Manipulating and searching arrays and lists

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

Manipulating and searching arrays and lists

Post by blueznl »

I should download the latest version, but I'm very hurriedly working on some large project, so haven't had time to look into the latest feature set :oops:

Anyway, I've been fooling around with linked lists and arrays for heavy table / data use, and end up coding some functions myself. I think these would be nice to have in the command set...

- DeleteArrayElement - allows deletion of one element in an array. If the array is multi dimensional, it deletes a whole 'row' (shifting up all remaining data in the array).

- SearchArray - looks for a specific entry in the specified array, returns the position in the array, similar to SortLIst and SortStructuredList, something like: SearchArray( <arrayname> , <offsetoff>, <typeoff>, <whattofind> )

- SearchList - like the one above

- SortStructuredArray - it would be great if I could sort on more than one field, would save a lot of coding

- SortStructuredList - same thing
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )