PDA

View Full Version : dir_listarray and linked lists



kryton9
14-05-2007, 05:43
I was wondering, can we use the linked list commands to add to and remove from a dir_listarray?

Using dir_listarray, it is very nice to get all the files one wants. It would be nice to be able to add to or remove from that list
returned by dir_listarray. I thought perhaps it was a special linked list and the linked list commands might work?

Thanks in advance.

ErosOlmi
14-05-2007, 07:23
Ken,

Dir_ListArray (http://www.thinbasic.com/public/products/thinBasic/help/html/dir_listarray.htm) does not return or manage any linked list but fill a string variable array with the list of files found depending on parameter passed. Of course once the array is filled you can do what you need with that array.

Different is the linked list module. With this module you will be able to create a linked list of whatever and than manage it as you prefer. Linked list module is generic and does not specifically works with list of files. You have to do the job fill a linked list of file names. Than the created linked list can be managed as you prefer.

Not sure if I've replied to your question. Let me know.

Ciao
Eros

kryton9
14-05-2007, 07:25
You did answer it clearly Eros, I see they are not similar at all. Thanks.