Help with Linked Lists

Miscellaneous Forums/Win32 Discussion/Help with Linked Lists

strict

type skill_def
field id=0
end type

global skill_def_list:TList = CreateList()

' add a skill_def...
local s1:skill_def = new skill_def
ListAddLast skill_def_list, s1

' iterate...
for local s2:skill_def = EachIn skill_def_list
print s2.id
next 


note that you have to declare "local s2:skill_def" in the loop if you have strict on just as you've declared s1 before.