finditemtext$ and load on demand

Started by bteixeira, September 10, 2020, 06:07:49 PM

Previous topic - Next topic

bteixeira

Is there a way to get finditemtext$ and load on demand to work at the same time.  Right now it looks like finditemtext will only search loaded rows.

Mike King

FindItem$ will only work on those items loaded in the list so you need to force load the list in order to be able to issue a find.

What you can do is issue a FindItem against the list box and if it indicates it cannot find the item, you could try to find the item yourself from whatever data source you are using then position the list box to where it should be (set TopVisibleItem) which would cause the Load on Demand logic to fire.
Mike King
President - BBSysco Consulting - http://www.bbsysco.com
eMail: mike.king@bbsysco.com