Jump to content

Tlist - equivalent?


Recommended Posts

HI I want to use a tlist but I found it is not implemented. Am I missing something?

 

 

 

MyList := Tlist.create;

 

 

 

MyInst := TMyGameObject.create;

 

MyList.add(MyInst);

 

 

 

onclose

 

while MyList.count > 0 do

 

begin

 

TMyGameObject(MyList[0]).free;

 

MyList.delete(0);

 

end;

 

MyList.free;

 

 

 

---------------------------------

 

 

 

So how do I do similar in SMS?

 

 

 

Sorry if this is obvious - I am bit slow picking up new things :)

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...