Summary
VFW106 – Using a List Collection
Important Observations
- Unlike fields which, once defined, are persistent for the lifespan of a component, components defined within a routine only exist for the duration of the routine. This is a very useful technique that saves you having to remember to reset variables each time a routine is run.
- Defining methods such as adds much greater clarity to your code. Furthermore, the method can be invoked by other components.
Tips & Techniques
- List Collections can collect any type (or Class) of Visual LANSA object.
- You would typically use Keyed Collections of Style Collection when you are collecting objects.
- You can pass a reference to an entire collection to another form or reusable component.
What You Should Know
- How to pass a reference to an entire collection.