Thanks for all of the help guys. I'm still rolling on this. This is what I have so far. I just need to understand the structure itself before I can use the pointers to their fullest potential. This is what I have so far. It is acting like a queue and its suppose to, sorry I omitted that in my first post:
General From wide declarations:
Button_click event for adding a new node:Code:Public GetData As String Public FrontP As Node Public RearP As Node
Now I'm working on scanning the list for the first node, once the current data equals the front data I am deleting from the front. This section is not working thus far.Code:Dim CurrP As New Node Dim Newnode As New Node CurrP = Newnode CurrP.Data = GetData CurrP.NextP = Nothing If RearP Is Nothing Then RearP = CurrP FrontP = CurrP Else RearP.NextP = CurrP RearP = CurrP End If
I'm still working on it. Linked Lists have to be the hardest thing for me to fully grasp since I have started coding. **** is giving me a headache.Code:Do Until CurrP Is FrontP CurrP.NextP = RearP CurrP = RearP If FrontP Is CurrP Then Exit Do End If Loop





Reply With Quote