PxPlus User Forum

Twitter Twitter Twitter

Author Topic: finditemtext$ and load on demand  (Read 1116 times)

bteixeira

  • Silver Member
  • ***
  • Posts: 27
    • View Profile
finditemtext$ and load on demand
« on: September 10, 2020, 06:07:49 PM »
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

  • Diamond Member
  • *****
  • Posts: 3817
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: finditemtext$ and load on demand
« Reply #1 on: September 10, 2020, 06:17:49 PM »
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
eMail: mike.king@bbsysco.com