Enhanced Linked-List Class for EB/IWB
Includes full set of examples and Help File
Methods in Class:
_LList Class destructor
AddAfter Adds node after current node
AddBefore Adds node before current node
AddEnd Adds node to end.
AddHead Adds node to beginning
ClearAll Deletes all list nodes
Count Number of nodes in list
Create Creates an instance of the class
DelCurrent Delete current node
ErrMsg Description of error code
GetFirst Get the first node
GetLast Get the last node
GetNext Get the next node
GetPrev Get the previous node
LList Class constructor
ReadData Check current node's data
ReadDataPos Reads data pointer from a specific node <- New in version 1.1
Larry
Thank you Larry for that generous offering, no doubt i'll make good use of it.
Cheers!
New version (1.1)
http://www.ionicwind.com/forums/index.php/topic,2613.msg22185.html#msg22185
Add new method - ReadDataPos
If you save the pointer to a list node you can come back later and address the node directly
in order to retrieve the nodes data pointer from that node.
Feature was requested by pistol350
Great!
I am looking forward to having more time to spend dealing with that new command.
Thank you so much Larry. 8)
just let me know if you run into a problem.
remember; that's the only command that doesn't have any error checking.
Larry
New Version (1.2)
Fixes a problem where creating a linked list, clearing it, and recreating it followed by a call to the AddAfter method on the empty list would cause a crash of the application.
Added a non-generic title to help file window.
Download at http://www.ionicwind.com/forums/index.php/topic,2613.msg22185.html#msg22185
Larry
New Version (1.21)
Fixes a problem where AddBefore method was breaking link and data was being lost..
Download at http://www.ionicwind.com/forums/index.php/topic,2613.msg22185.html#msg22185
Larry
Documentation Fixed.
The attached is a revised help file that will allow EBasic's IDE Search Help... option to search file.
Larry