load Method Explained |
Before the form is displayed the library's allBooks collection is associated with the list box.
Instructions
- In the Class Browser, select the ReservationForm.
- In the properties window, select <form>.
- In the methods window, select load.
- Copy and compile the code on the right.
|

load() updating;
vars
coll : BookDictionary;
begin
coll := LendingLibrary.firstInstance.allBooks;
listBoxBooks.listCollection(coll, true, 0);
end; |
|
displayEntry Method Explained |
In the load method you specified the collection to be used for the list box.
Now you must specify the text to be displayed for each object in the collection.
Instructions
- In the Class Browser, select the ReservationForm.
- In the properties window, select listBoxBooks.
- In the methods window, select displayEntry.
- Copy and compile the code on the right.
|

listBoxBooks_displayEntry(listbox : ListBox input; obj : Any;
lstIndex : Integer) : String updating;
begin
return obj.Book.title;
end; |
|
unload Method Explained |
Before the form is unloaded all notifications are stopped.
Instructions
- In the Class Browser, select the ReservationForm.
- In the properties window, select <form>.
- In the methods window, select unload.
- Copy and compile the code on the right.
|

unload() updating;
begin
endNotificationForSubscriber(self);
end; |
|