That solved the problem, thanks. But I still have some head scratching to do.
Before my original post on Friday, I looked at B4XPreferencesDialog library and didn't see any property similar to "MaxNumberOfItemsToShow". I do see a reference to B4XSearchTemplate and that it is a class, and your solution worked, but I am still puzzled as to where the source code for B4XSearchTemplate is stored? I searched every *.bas file I have and it's not in any of them.
Can you tell me which library has the B4XSearchTemplate class and how did this library get linked into the PreferencesDialog demo?
TIA