I've a complex query that I'm performing which is hanging the app's
interface while the query is performed. I thought, "I'll put the
query in a thread and spin the barber pole while I wait."
<snippet>
pBar.Visible = true
pBar.Refresh // show progress bar
Query.SetQuery sSQL // setup thread
Query.SetWindow self // setup thread
Query.Run // query
while not m_bQueryDone // while the thread hasn't finished
pBar.Refresh // spin barber pole
wend
sData = Query.Data
Query = nil
pBar.Visible = false
pBar.Refresh
</snippet>
In place of "pBar.Refresh", I've tried "app.SleepCurrentThread 500"
and "app.Doevents". Nothing seems to make the pole spin. In the
IDE, the maximum is set to zero so as soon as I show the progress bar
it should be spinning.
Any ideas?
Christian
Pariahware, Inc. Custom Software
<pariahware at pariahware dot com>
<http://www.pariahware.com>
--
God loved you so much that He gave His only son Jesus. What have you
done with God's gift?
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|