Is there a way to simulate timers within lainja or some method to watch say a folder every second to see if a file is present and if so fire a procedure.
We use this a lot with checking serial and IP ports as well.
Is there a way to simulate timers within lainja or some method to watch say a folder every second to see if a file is present and if so fire a procedure.
We use this a lot with checking serial and IP ports as well.
lo = newobject("timer")
hth,
Hank
Hi Rob
Lianja Has built in support for watching for files or directories changing.
https://www.lianja.com/doc/index.php...System_Watcher
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
how about for serial communications, we use timers to check the buffer for data.
You can do this programatically by creating a Timer object as was previously mentioned.
Alternatively you can have timers on the app, pages, sections and fields all with a configurable timer interval. Note that timers only fire when your app is in runtime mode not in design mode.
Rather than polling it may be more responsive to handle a callback depending on what you use to handle the serial communications. As ws mentioned previously you can do this in Python and integrate it into your VFP code.
Last edited by barrymavin; 2024-02-22 at 04:34.
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
Bookmarks