ArrayList how do you use it???

apstrojny2

Member
Licensed User
Longtime User
I guess I'm at a loss of how to initialize it or use ArrayList... Is it possible to get a copy of a .sbp program that uses it to read files in a directory using an ArrayList?

From the Filesearch or Directory search topic...

FileSearch (alFiles, "\My Documents", "*.*") Got No Clue how to define alFiles or use it?

Thanks Andy
 

Zenerdiode

Active Member
Licensed User
Hello Andy,

You add the ArrayList just like it was a button in the IDE. Its in the 'Controls/Collections' submenu of the IDE. I've attached a very simple project to show how its used.
 

Attachments

  • ArrayListExample.sbp
    822 bytes · Views: 240

apstrojny2

Member
Licensed User
Longtime User
Thanks a bunch

Hi ZenerDiode,
Thanks a bunch... I really appreciate your example... I see how you added the ArrayList in the form designer as a control... It just has to be done that way even though the ArrayList maybe something you manage in the program and has nothing to do with the form, right?... Have a Happy Hoiliday and thanks again...
Andy
 

Zenerdiode

Active Member
Licensed User
It just has to be done that way even though the ArrayList maybe something you manage in the program and has nothing to do with the form, right?

Yes, you've got it. :) There are a few controls like that; whereby they are added to the form in the IDE but have no 'visible' properties. A timer, open/save dialog, any of the collections and imagelist are others I can think of right now.

Thank you for the holiday wishes - respectfully returned.
 
Top