Marco Maria Vilucchi Active Member Licensed User Longtime User Nov 15, 2015 #1 Hi, I'm using iHud library When I use ProgressDialogShow, it only flash... Example: ProgressDialogShow Read 200 records ProgressDialogHide It just flash at the end of read istruction It seems I wrote: Read 200 records ProgressDialogShow ProgressDialogHide What appens? Thx Marco
Hi, I'm using iHud library When I use ProgressDialogShow, it only flash... Example: ProgressDialogShow Read 200 records ProgressDialogHide It just flash at the end of read istruction It seems I wrote: Read 200 records ProgressDialogShow ProgressDialogHide What appens? Thx Marco
Erel B4X founder Staff member Licensed User Longtime User Nov 15, 2015 #2 The main thread should be free for the dialog to show. How long does it take to read the 200 records? It should be quite fast. If it is slow, and you can't optimize it then you need to use SQL.ExecQueryAsync instead. Upvote 0
The main thread should be free for the dialog to show. How long does it take to read the 200 records? It should be quite fast. If it is slow, and you can't optimize it then you need to use SQL.ExecQueryAsync instead.
Marco Maria Vilucchi Active Member Licensed User Longtime User Nov 15, 2015 #3 I want ProgressDialogShow works during reading, while user waits for a response It's possible that records were 2000.... How can i do? Thx Marco Upvote 0
I want ProgressDialogShow works during reading, while user waits for a response It's possible that records were 2000.... How can i do? Thx Marco
Erel B4X founder Staff member Licensed User Longtime User Nov 16, 2015 #4 See my answer above. The first step is to optimize your queries. Reading 2000 records can be a very quick operation if the query uses an index for example. If it is too slow then you need to use the async method instead. Upvote 0
See my answer above. The first step is to optimize your queries. Reading 2000 records can be a very quick operation if the query uses an index for example. If it is too slow then you need to use the async method instead.
Marco Maria Vilucchi Active Member Licensed User Longtime User Nov 16, 2015 #5 Sorry, I wrong Forum I'm using B4I.... I know ExecQueryAsync function isn't available in B4I. I apologize for my error. Upvote 0
Sorry, I wrong Forum I'm using B4I.... I know ExecQueryAsync function isn't available in B4I. I apologize for my error.
Erel B4X founder Staff member Licensed User Longtime User Nov 16, 2015 #6 Please start a new thread in the correct forum and also post the relevant code. Upvote 0