function getAllCustomerStates(listOfStates STRING[])
customers Customer[0];
counter INT;
get customers with
#sql{
select "STATE"
from EGL.CUSTOMER
order by "STATE" asc
};
listOfStates.removeAll();
for (counter from 1 to customers.getSize() by 1)
listOfStates.appendElement(customers[counter].State);
end
end
Here is the complete code of the SearchLibrary.egl file. If you see any errors marked by red X symbols in the file, make sure your code matches the code in this file: Completed SearchLibrary.egl file after lesson 4.
customerStates STRING[0];
This
variable holds the list of states returned by the function in the
library.SearchLibrary.getAllCustomerStates(customerStates);
The customersearch.egl file looks like this when you are done (some functions are compressed, indicated by a plus sign in the left margin of the page):

Here are some technical notes on the code you just added:
Here is the complete code of the customersearch.egl file. If you see any errors marked by red X symbols in the file, make sure your code matches the code in this file:Completed customersearch.egl file after lesson 4

The Select Page Data Object window looks like this:
