Move object to last position in list

BlitzMax Forums/BlitzMax Programming/Move object to last position in list

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I need to move object or a link to last position in a list.

Method New()
Link:Tlink = ListAddLast(CurrentGUI.WindowList,Self)
End Method


'place the link to last
RemoveLink(Win.Link)
Win.Link = ListAddLast(CurrentGUI.WindowList,Win)


It doesnt work and creates a memory leak.