another probably simple question
Posted: Thu Nov 01, 2012 10:08 am
I have an 'about' box that displays the number of 'active' users.
users := user_count()
@ 3.5, 40 dcsay str( users ) saysize 25 sayleft
That gives me a fixed value. That is, if another user logs in while the about box is open the value doesn't change.
How would I make that update say every 2 seconds?
I can see a function CheckUsers() , something like:
do while .t.
users := user_count()
sleep(200)
loop
but how would I call it so we don't get stuck in the loop and the code can get to the dcread?
thanks
users := user_count()
@ 3.5, 40 dcsay str( users ) saysize 25 sayleft
That gives me a fixed value. That is, if another user logs in while the about box is open the value doesn't change.
How would I make that update say every 2 seconds?
I can see a function CheckUsers() , something like:
do while .t.
users := user_count()
sleep(200)
loop
but how would I call it so we don't get stuck in the loop and the code can get to the dcread?
thanks