Please wait..

padvou

Active Member
Licensed User
Longtime User
Hi everybody.
When there's a time consuming query that selects data to fill a listview how can I inform the user to wait until they are finished?
I 've tried putting progressdialog show before the commad that runs the query, but it ...doesn't show:)
Maybe because the main thread is too busy? I don't know...
Any suggestions, please?
 

Informatix

Expert
Licensed User
Longtime User
Hi everybody.
When there's a time consuming query that selects data to fill a listview how can I inform the user to wait until they are finished?
I 've tried putting progressdialog show before the commad that runs the query, but it ...doesn't show:)
Maybe because the main thread is too busy? I don't know...
Any suggestions, please?

Look at the Demo_WordDBTable2.bas of UltimateListView (Sort_Data function). It shows a rotating circle while the data are sorted.
This code doesn't use DoEvents and thus is more B4A compliant.
 
Upvote 0

padvou

Active Member
Licensed User
Longtime User
Look at the Demo_WordDBTable2.bas of UltimateListView (Sort_Data function). It shows a rotating circle while the data are sorted.
This code doesn't use DoEvents and thus is more B4A compliant.

CallSubExtended?
Looks like the threading way of running code used in visual studio.
 
Last edited:
Upvote 0

padvou

Active Member
Licensed User
Longtime User
It's a library provided with ULV in the version 2 folder. It extends CallSub and allows to run a sub asynchronously or/and with any number of parameters or/and with a return value of any type.

Sometimes under unspecified circumstances, the separate process never finishes..
How could it be monitored somehow and killed after, for example, 5 seconds?
 
Upvote 0

yttrium

Active Member
Licensed User
Longtime User
Sometimes under unspecified circumstances, the separate process never finishes..
How could it be monitored somehow and killed after, for example, 5 seconds?

A timer to query for progress?
 
Upvote 0

padvou

Active Member
Licensed User
Longtime User
Hi again,
to bring up the rather old issue of the sub that has been called using CSE that never exits..
I desperately need some workaround to make it exit even if it has error, or whatever the issue. My app gets stuck with a progressbar and i cannot do anything to kill it, or my app...
 
Upvote 0
Top