April 28, 2024, 06:03:13 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


LList Class - Enhanced Linked-List Class for EB/IWB

Started by LarryMc, August 06, 2008, 10:19:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

LarryMc

August 06, 2008, 10:19:43 PM Last Edit: November 18, 2017, 11:04:52 AM by LarryMc
 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
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

pistol350

August 07, 2008, 02:10:33 AM #1 Last Edit: November 18, 2017, 11:02:40 AM by LarryMc
Thank you Larry for that generous offering, no doubt i'll make good use of it.

Cheers!
Regards,

Peter B.

LarryMc

October 21, 2008, 09:00:22 PM #2 Last Edit: November 18, 2017, 11:03:03 AM by LarryMc
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   
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

pistol350

October 22, 2008, 02:37:42 PM #3 Last Edit: November 18, 2017, 11:03:17 AM by LarryMc
Great!
I am looking forward to having more time to spend dealing with that new command.
Thank you so much Larry.  8)
Regards,

Peter B.

LarryMc

October 22, 2008, 03:13:26 PM #4 Last Edit: November 18, 2017, 11:03:32 AM by LarryMc
just let me know if you run into a problem.
remember; that's the only command that doesn't have any error checking.

Larry
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

LarryMc

May 25, 2009, 12:26:13 AM #5 Last Edit: November 18, 2017, 11:03:46 AM by LarryMc
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
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

LarryMc

May 27, 2009, 07:12:45 AM #6 Last Edit: November 18, 2017, 11:04:00 AM by LarryMc
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
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

LarryMc

July 25, 2009, 05:12:06 PM #7 Last Edit: November 18, 2017, 11:04:13 AM by LarryMc
Documentation Fixed.

The attached is a revised help file that will allow EBasic's IDE Search Help... option to search file.

Larry
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library