Hi Bob, Thanks a lot for replying here and on SO.
I have taken a look at "break" though I don't see this as a solution to my problem.
Regarding your second proposal... I'm not sure to understand everything right now! May be I need to wait until tomorrow ;-).
Thanks, Eric Le 02/01/2021 à 22:54, 'robert therriault' via Programming a écrit :
Hi Eric, I had seen your initial question on StackOverflow, attempted an answer, and I am glad you headed over here for more options. It sounds to me as if you are setting up an infinite loop that waits on a change to the database to do an update and exit. I think that this can be done using the break. control word inside the while. loop. https://www.jsoftware.com/help/dictionary/cbreak.htm I also think that this will lock up your J session until you have a change to your database and I don't think that that is what you are aiming for. If you are working in the jQt IDE have you looked at the timer event? https://code.jsoftware.com/wiki/Guides/Window_Driver/Event_Handling#Timer_Events This could initiate your code once every x seconds and in the interim allow the rest of the session to run. Cheers, bob
---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
