# The indeterminate progress bar doesn't appear

**URL:** <https://forum.xojo.com/t/the-indeterminate-progress-bar-doesnt-appear/86645>\
**Category:** Windows\
**Created:** [October 3, 2025, 3:54pm UTC](https://forum.xojo.com/t/the-indeterminate-progress-bar-doesnt-appear/86645 "2025-10-03T15:54:41Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![GUERINO\_IANDIORIO](https://forum.xojo.com/letter_avatar_proxy/v4/letter/g/e68b1a/32.png) [@GUERINO\_IANDIORIO](https://forum.xojo.com/u/GUERINO_IANDIORIO)\
**Post date:** [October 6, 2025, 9:14am UTC](https://forum.xojo.com/t/the-indeterminate-progress-bar-doesnt-appear/86645/22 "2025-10-06T09:14:29Z")

</div>

Hi Mike,

I took a look at your example and need to study it because it seems a bit complicated for me. I’m puzzled by the fact that to do what I’m asking requires more complicated steps than expected.

At this point I was wondering: if I wanted to increment a progress bar with real values ​​during a “Select…” command, how can I do it since the command is synchronous?  
That is, how can I display the progress during the execution of the select?

---

<div class="post-metadata">

**Author:** ![MarkusR](https://forum.xojo.com/user_avatar/forum.xojo.com/markusr/32/685_2.png) [@MarkusR](https://forum.xojo.com/u/MarkusR)\
**Post date:** [October 6, 2025, 10:47am UTC](https://forum.xojo.com/t/the-indeterminate-progress-bar-doesnt-appear/86645/23 "2025-10-06T10:47:37Z")

</div>

query a database is usually fast.

but updating the listbox could be slow if u fill it with many thausend of rows and many fields.

you could add more query filters to reduce the result rows

or maybe use

> **[Lazy Loading Data with ListBox – Xojo Programming Blog](https://blog.xojo.com/2020/04/17/lazy-loading-data-with-listbox/)**

to make a sql query faster use only the fields you like to display not just \*

use indices in your database table design.

---

<div class="post-metadata">

**Author:** ![Sascha\_S](https://forum.xojo.com/user_avatar/forum.xojo.com/sascha_s/32/22328_2.png) [@Sascha\_S](https://forum.xojo.com/u/Sascha_S)\
**Post date:** [October 6, 2025, 12:20pm UTC](https://forum.xojo.com/t/the-indeterminate-progress-bar-doesnt-appear/86645/24 "2025-10-06T12:20:29Z")

</div>

To keep things simple, you could

1. Enable the ProgressBar and start a Thread in which you querrie the Database and move through the Records.
2. Before each MoveToNext (Record) you call the UserInterfaceupdate Event.
3. You hand over the data of the Record to this event, update the ListBox and the ProgressBar.Value.

Idealy the Thread would be of Type preemptive. 🙂

* * *

[I took one of the Xojo examples and reworked it accordingly. Quick & Dirty, as you know me. But the principle should be clear.](https://forum.xojo.com/uploads/short-url/jg2smr7H7ssoI5S6fbvbqg1r7wo.zip) (16.5 KB)

---

<div class="post-metadata">

**Author:** ![Mike\_D](https://forum.xojo.com/user_avatar/forum.xojo.com/mike_d/32/266_2.png) [@Mike\_D](https://forum.xojo.com/u/Mike_D)\
**Post date:** [October 6, 2025, 2:55pm UTC](https://forum.xojo.com/t/the-indeterminate-progress-bar-doesnt-appear/86645/25 "2025-10-06T14:55:49Z")

</div>

> [@GUERINO\_IANDIORIO](#):
>
> if I wanted to increment a progress bar with real values ​​during a “Select…” command, how can I do it since the command is synchronous?

It really depends on what your database situation is - for example if you are using SQLite where the database is on the same disk as your app, the SELECT command will probably run in a few milliseconds - so there’s literally no need to (or enough time to) deal with a progressBar.

If your database is remote and much slower, then perhaps you would want to break up your SELECT statement using LIMIT and OFFSET to return batches of results, like this:

```auto
SELECT column1, column2, ... FROM table_name LIMIT 100 OFFSET 0;

[update the UI]

SELECT column1, column2, ... FROM table_name LIMIT 100 OFFSET 100;

[update the UI]

SELECT column1, column2, ... FROM table_name LIMIT 100 OFFSET 200;

... etc...

```

It’s probable that this batch approach will be slower overall than doing a single SELECT statement.

However, an actively updating User Interface can also “feel” better from the user’s perspective, even if it’s slower overall - it’s a tradeoff.

What works best for your app will depend on the details.

---

<div class="post-metadata">

**Author:** ![GUERINO\_IANDIORIO](https://forum.xojo.com/letter_avatar_proxy/v4/letter/g/e68b1a/32.png) [@GUERINO\_IANDIORIO](https://forum.xojo.com/u/GUERINO_IANDIORIO)\
**Post date:** [October 7, 2025, 7:20am UTC](https://forum.xojo.com/t/the-indeterminate-progress-bar-doesnt-appear/86645/26 "2025-10-07T07:20:09Z")

</div>

Ok Mike,

thanks for your suggestion

[Previous page](https://forum.xojo.com/t/the-indeterminate-progress-bar-doesnt-appear/86645.md?page=1)
