moore_it Well-Known Member Licensed User Longtime User Jul 27, 2017 #1 Hi all, how i do for kill an resumable sub from UI ? Thanks in advice
Erel B4X founder Staff member Licensed User Longtime User Jul 27, 2017 #2 I don't understand what you mean. What do you want to kill and how is it related to the UI? Upvote 0
moore_it Well-Known Member Licensed User Longtime User Jul 28, 2017 #3 Have a form with two button, when i click on start button the resumable sub start, but if i click on stop button how i do for stopping the resumable sub ? Upvote 0
Have a form with two button, when i click on start button the resumable sub start, but if i click on stop button how i do for stopping the resumable sub ?
Erel B4X founder Staff member Licensed User Longtime User Jul 28, 2017 #4 Can you post the resumable sub code? Upvote 0
moore_it Well-Known Member Licensed User Longtime User Jul 28, 2017 #5 simple read a txt file with textreader (a file text with 30000 rows) and print in an label the row is reading Upvote 0
simple read a txt file with textreader (a file text with 30000 rows) and print in an label the row is reading
Erel B4X founder Staff member Licensed User Longtime User Jul 28, 2017 #6 Can you post the code? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jul 28, 2017 #7 Here is a generic solution: Code: Sub ThisIsAResumableSub Dim MyIndex As Int = WorkIndex 'process global variable Do While True 'do something Sleep(...) If MyIndex <> WorkIndex Then Exit Loop Stop the sub: Code: WorkIndex = WorkIndex + 1 Make sure to use B4J v5.82+. Upvote 0
Here is a generic solution: Code: Sub ThisIsAResumableSub Dim MyIndex As Int = WorkIndex 'process global variable Do While True 'do something Sleep(...) If MyIndex <> WorkIndex Then Exit Loop Stop the sub: Code: WorkIndex = WorkIndex + 1 Make sure to use B4J v5.82+.
moore_it Well-Known Member Licensed User Longtime User Jul 28, 2017 #8 Sorry for delay ... Attachments Test.zip Test.zip 99.2 KB · Views: 318 Upvote 0
moore_it Well-Known Member Licensed User Longtime User Jul 28, 2017 #9 Ops i don't see the solution Thanks Upvote 0